Class: BigDoor::CurrencyType
- Defined in:
- lib/big_door/currency_type.rb
Overview
This module provides CurrencyType Resource object corresponding to /currency_type BigDoor API end point
Instance Method Summary collapse
-
#initialize(hash = {}) ⇒ CurrencyType
constructor
Initialize new CurrencyType object with optional Hash.
Methods inherited from Resource
all, #delete, #end_point, end_point, end_point_from_classname, #get_id, #instance_to_payload, #load, #response_to_instance, #save
Constructor Details
#initialize(hash = {}) ⇒ CurrencyType
Initialize new CurrencyType object with optional Hash
13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 |
# File 'lib/big_door/currency_type.rb', line 13 def initialize( hash = {} ) $log.debug( "CurrencyType init with hash = #{hash.inspect}") default_values = { 'read_only' => 1, 'title' => '', 'description' => '', 'has_dollar_exchange_rate_integrity' => 0, 'can_be_cross_publisher' => 0, 'can_be_purchased' => 0, 'can_be_rewarded' => 0, } default_values.merge!( hash ) $log.debug( "CurrencyType default_values = #{default_values.inspect}") super( default_values ) end |