Class: GimmeGimme::FakeCimGateway
- Inherits:
-
ActiveMerchant::Billing::AuthorizeNetCimGateway
- Object
- ActiveMerchant::Billing::AuthorizeNetCimGateway
- GimmeGimme::FakeCimGateway
- Defined in:
- lib/generators/gimme_gimme/test_support/templates/testing/fake_cim_gateway.rb
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ FakeCimGateway
constructor
A new instance of FakeCimGateway.
- #server ⇒ Object
- #ssl_request(method, url, data, headers = {}) ⇒ Object
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 = .update(:login => 'fakelogin', :password => 'fakepassword') end |
Instance Method Details
#server ⇒ Object
11 12 13 |
# File 'lib/generators/gimme_gimme/test_support/templates/testing/fake_cim_gateway.rb', line 11 def server [: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 = {}) [:server].request(method, url, data, headers) end |