Class: GimmeGimme::FakeCimGateway

Inherits:
ActiveMerchant::Billing::AuthorizeNetCimGateway
  • Object
show all
Defined in:
lib/generators/gimme_gimme/test_support/templates/testing/fake_cim_gateway.rb

Instance Method Summary collapse

Constructor Details

#initialize(options = {}) ⇒ FakeCimGateway

Returns a new instance of FakeCimGateway.



3
4
5
# File 'lib/generators/gimme_gimme/test_support/templates/testing/fake_cim_gateway.rb', line 3

def initialize(options = {})
  @options = options.update(:login => 'fakelogin', :password => 'fakepassword')
end

Instance Method Details

#serverObject



11
12
13
# File 'lib/generators/gimme_gimme/test_support/templates/testing/fake_cim_gateway.rb', line 11

def server
  options[:server]
end

#ssl_request(method, url, data, headers = {}) ⇒ Object



7
8
9
# File 'lib/generators/gimme_gimme/test_support/templates/testing/fake_cim_gateway.rb', line 7

def ssl_request(method, url, data, headers = {})
  options[:server].request(method, url, data, headers)
end