Class: Io::Flow::V0::Models::OrganizationOnboardingStateDeleted
- 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.
-
#organization_onboarding_state ⇒ Object
readonly
Returns the value of attribute organization_onboarding_state.
-
#timestamp ⇒ Object
readonly
Returns the value of attribute timestamp.
Attributes inherited from Event
Instance Method Summary collapse
- #copy(incoming = {}) ⇒ Object
-
#initialize(incoming = {}) ⇒ OrganizationOnboardingStateDeleted
constructor
A new instance of OrganizationOnboardingStateDeleted.
- #subtype_to_hash ⇒ Object
- #to_json ⇒ Object
Methods inherited from Event
Constructor Details
#initialize(incoming = {}) ⇒ OrganizationOnboardingStateDeleted
Returns a new instance of OrganizationOnboardingStateDeleted.
55078 55079 55080 55081 55082 55083 55084 55085 55086 55087 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 55078 def initialize(incoming={}) super(:discriminator => Event::Types::ORGANIZATION_ONBOARDING_STATE_DELETED) opts = HttpClient::Helper.symbolize_keys(incoming) HttpClient::Preconditions.require_keys(opts, [:event_id, :timestamp, :organization, :id, :organization_onboarding_state], 'OrganizationOnboardingStateDeleted') @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) @organization_onboarding_state = (x = opts.delete(:organization_onboarding_state); x.is_a?(::Io::Flow::V0::Models::OrganizationOnboardingState) ? x : ::Io::Flow::V0::Models::OrganizationOnboardingState.new(x)) end |
Instance Attribute Details
#event_id ⇒ Object (readonly)
Returns the value of attribute event_id.
55076 55077 55078 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 55076 def event_id @event_id end |
#id ⇒ Object (readonly)
Returns the value of attribute id.
55076 55077 55078 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 55076 def id @id end |
#organization ⇒ Object (readonly)
Returns the value of attribute organization.
55076 55077 55078 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 55076 def organization @organization end |
#organization_onboarding_state ⇒ Object (readonly)
Returns the value of attribute organization_onboarding_state.
55076 55077 55078 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 55076 def organization_onboarding_state @organization_onboarding_state end |
#timestamp ⇒ Object (readonly)
Returns the value of attribute timestamp.
55076 55077 55078 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 55076 def @timestamp end |
Instance Method Details
#copy(incoming = {}) ⇒ Object
55093 55094 55095 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 55093 def copy(incoming={}) OrganizationOnboardingStateDeleted.new(subtype_to_hash.merge(HttpClient::Helper.symbolize_keys(incoming))) end |
#subtype_to_hash ⇒ Object
55097 55098 55099 55100 55101 55102 55103 55104 55105 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 55097 def subtype_to_hash { :event_id => event_id, :timestamp => , :organization => organization, :id => id, :organization_onboarding_state => organization_onboarding_state.to_hash } end |
#to_json ⇒ Object
55089 55090 55091 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 55089 def to_json JSON.dump(to_hash) end |