Sha256: 2ed473f1887588c1d5f087c2f81f8aee5cf782c414bff92b48bb97bbe12c33c1
Contents?: true
Size: 621 Bytes
Versions: 6
Compression:
Stored size: 621 Bytes
Contents
module ActiveMerchant module Fulfillment class Service include RequiresParameters include PostsData def initialize(options = {}) check_test_mode(options) @options = {} @options.update(options) end def test_mode? false end def test? @options[:test] || Base.mode == :test end private def check_test_mode(options) if options[:test] and not test_mode? raise ArgumentError, 'Test mode is not supported by this gateway' end end end end end
Version data entries
6 entries across 6 versions & 1 rubygems