Class: TrustCommerce::Result

Inherits:
Hash
  • Object
show all
Defined in:
lib/trustcommerce.rb

Instance Method Summary collapse

Constructor Details

#initialize(constructor = {}) ⇒ Result

Returns a new instance of Result.



160
161
162
163
164
165
166
167
# File 'lib/trustcommerce.rb', line 160

def initialize(constructor = {})
  if constructor.is_a?(Hash)
    super()
    update(constructor)
  else
    super(constructor)
  end
end