Class: Io::Flow::V0::Models::OrganizationCurrencySettingDeleted
- Defined in:
- lib/flow_commerce/flow_api_v0_client.rb
Instance Attribute Summary collapse
-
#event_id ⇒ Object
readonly
Returns the value of attribute event_id.
-
#organization_currency_setting_id ⇒ Object
readonly
Returns the value of attribute organization_currency_setting_id.
-
#timestamp ⇒ Object
readonly
Returns the value of attribute timestamp.
Instance Method Summary collapse
- #copy(incoming = {}) ⇒ Object
-
#initialize(incoming = {}) ⇒ OrganizationCurrencySettingDeleted
constructor
A new instance of OrganizationCurrencySettingDeleted.
- #subtype_to_hash ⇒ Object
- #to_json ⇒ Object
Methods inherited from Event
Constructor Details
#initialize(incoming = {}) ⇒ OrganizationCurrencySettingDeleted
Returns a new instance of OrganizationCurrencySettingDeleted.
15038 15039 15040 15041 15042 15043 15044 15045 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 15038 def initialize(incoming={}) super(:name => Event::Types::ORGANIZATION_CURRENCY_SETTING_DELETED) opts = HttpClient::Helper.symbolize_keys(incoming) HttpClient::Preconditions.require_keys(opts, [:event_id, :timestamp, :organization_currency_setting_id], 'OrganizationCurrencySettingDeleted') @event_id = HttpClient::Preconditions.assert_class('event_id', opts.delete(:event_id), String) = HttpClient::Preconditions.assert_class('timestamp', HttpClient::Helper.to_date_time_iso8601(opts.delete(:timestamp)), DateTime) @organization_currency_setting_id = HttpClient::Preconditions.assert_class('organization_currency_setting_id', opts.delete(:organization_currency_setting_id), String) end |
Instance Attribute Details
#event_id ⇒ Object (readonly)
Returns the value of attribute event_id.
15036 15037 15038 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 15036 def event_id @event_id end |
#organization_currency_setting_id ⇒ Object (readonly)
Returns the value of attribute organization_currency_setting_id.
15036 15037 15038 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 15036 def organization_currency_setting_id @organization_currency_setting_id end |
#timestamp ⇒ Object (readonly)
Returns the value of attribute timestamp.
15036 15037 15038 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 15036 def end |
Instance Method Details
#copy(incoming = {}) ⇒ Object
15051 15052 15053 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 15051 def copy(incoming={}) OrganizationCurrencySettingDeleted.new(subtype_to_hash.merge(HttpClient::Helper.symbolize_keys(incoming))) end |
#subtype_to_hash ⇒ Object
15055 15056 15057 15058 15059 15060 15061 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 15055 def subtype_to_hash { :event_id => event_id, :timestamp => , :organization_currency_setting_id => organization_currency_setting_id } end |
#to_json ⇒ Object
15047 15048 15049 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 15047 def to_json JSON.dump(to_hash) end |