Class: ActiveMerchant::Fulfillment::Service
- Inherits:
-
Object
- Object
- ActiveMerchant::Fulfillment::Service
- Includes:
- PostsData, RequiresParameters
- Defined in:
- lib/active_fulfillment/fulfillment/service.rb
Direct Known Subclasses
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ Service
constructor
A new instance of Service.
- #test? ⇒ Boolean
- #test_mode? ⇒ Boolean
Methods included from PostsData
included, #raw_ssl_request, #ssl_get, #ssl_post, #ssl_request
Methods included from RequiresParameters
Constructor Details
#initialize(options = {}) ⇒ Service
Returns a new instance of Service.
8 9 10 11 12 13 |
# File 'lib/active_fulfillment/fulfillment/service.rb', line 8 def initialize( = {}) check_test_mode() @options = {} @options.update() end |
Instance Method Details
#test? ⇒ Boolean
19 20 21 |
# File 'lib/active_fulfillment/fulfillment/service.rb', line 19 def test? @options[:test] || Base.mode == :test end |
#test_mode? ⇒ Boolean
15 16 17 |
# File 'lib/active_fulfillment/fulfillment/service.rb', line 15 def test_mode? false end |