Class: Io::Flow::V0::Models::ExperiencePriceBookMappingDeleted
- 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.
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#organization ⇒ Object
readonly
Returns the value of attribute organization.
-
#timestamp ⇒ Object
readonly
Returns the value of attribute timestamp.
Attributes inherited from Event
Instance Method Summary collapse
- #copy(incoming = {}) ⇒ Object
-
#initialize(incoming = {}) ⇒ ExperiencePriceBookMappingDeleted
constructor
A new instance of ExperiencePriceBookMappingDeleted.
- #subtype_to_hash ⇒ Object
- #to_json ⇒ Object
Methods inherited from Event
Constructor Details
#initialize(incoming = {}) ⇒ ExperiencePriceBookMappingDeleted
Returns a new instance of ExperiencePriceBookMappingDeleted.
30596 30597 30598 30599 30600 30601 30602 30603 30604 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 30596 def initialize(incoming={}) super(:discriminator => Event::Types::EXPERIENCE_PRICE_BOOK_MAPPING_DELETED) opts = HttpClient::Helper.symbolize_keys(incoming) HttpClient::Preconditions.require_keys(opts, [:event_id, :timestamp, :organization, :id], 'ExperiencePriceBookMappingDeleted') @event_id = HttpClient::Preconditions.assert_class('event_id', opts.delete(:event_id), String) @timestamp = HttpClient::Preconditions.assert_class('timestamp', HttpClient::Helper.to_date_time_iso8601(opts.delete(:timestamp)), DateTime) @organization = HttpClient::Preconditions.assert_class('organization', opts.delete(:organization), String) @id = HttpClient::Preconditions.assert_class('id', opts.delete(:id), String) end |
Instance Attribute Details
#event_id ⇒ Object (readonly)
Returns the value of attribute event_id.
30594 30595 30596 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 30594 def event_id @event_id end |
#id ⇒ Object (readonly)
Returns the value of attribute id.
30594 30595 30596 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 30594 def id @id end |
#organization ⇒ Object (readonly)
Returns the value of attribute organization.
30594 30595 30596 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 30594 def organization @organization end |
#timestamp ⇒ Object (readonly)
Returns the value of attribute timestamp.
30594 30595 30596 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 30594 def @timestamp end |
Instance Method Details
#copy(incoming = {}) ⇒ Object
30610 30611 30612 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 30610 def copy(incoming={}) ExperiencePriceBookMappingDeleted.new(subtype_to_hash.merge(HttpClient::Helper.symbolize_keys(incoming))) end |
#subtype_to_hash ⇒ Object
30614 30615 30616 30617 30618 30619 30620 30621 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 30614 def subtype_to_hash { :event_id => event_id, :timestamp => , :organization => organization, :id => id } end |
#to_json ⇒ Object
30606 30607 30608 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 30606 def to_json JSON.dump(to_hash) end |