class Io::Flow::V0::Models::OnboardingStateTransition
Attributes
started_at[R]
state[R]
Public Class Methods
new(incoming={})
click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 50899 def initialize(incoming={}) opts = HttpClient::Helper.symbolize_keys(incoming) HttpClient::Preconditions.require_keys(opts, [:state, :started_at], 'OnboardingStateTransition') @state = (x = opts.delete(:state); x.is_a?(::Io::Flow::V0::Models::OnboardingState) ? x : ::Io::Flow::V0::Models::OnboardingState.from_json(x)) @started_at = HttpClient::Preconditions.assert_class('started_at', HttpClient::Helper.to_date_time_iso8601(opts.delete(:started_at)), DateTime) end
Public Instance Methods
copy(incoming={})
click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 50910 def copy(incoming={}) OnboardingStateTransition.new(to_hash.merge(HttpClient::Helper.symbolize_keys(incoming))) end
to_hash()
click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 50914 def to_hash { :state => state.to_hash, :started_at => started_at } end
to_json()
click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 50906 def to_json JSON.dump(to_hash) end