search for: set_card

Displaying 1 result from an estimated 1 matches for "set_card".

Did you mean: set_cart
2006 Jun 07
1
Using DRb within Rails
I want to use DRb within my Rails app. Right now I''ve got a very basic class: class PaymentGateway cattr_accessor :ssl_config, :host, :port def self.gateway @@gateway ||= new end def process(amount, card, type = :auth) @biller.process(amount, card, type) end def set_card(user_id, number) @biller.set_card(user_id, number) end protected def initialize DRb.start_service nil, nil, PaymentGateway.ssl_config @biller = DRbObject.new(nil, "drbssl://#{PaymentGateway.host}:#{PaymentGateway.port}") end end In my environment.rb file, I set up th...