class Io::Flow::V0::Models::LabelTrackingSummaryUpdate
Attributes
created_at[R]
timestamp[R]
Public Class Methods
new(incoming={})
click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 48170 def initialize(incoming={}) opts = HttpClient::Helper.symbolize_keys(incoming) HttpClient::Preconditions.require_keys(opts, [:timestamp], 'LabelTrackingSummaryUpdate') @timestamp = HttpClient::Preconditions.assert_class('timestamp', HttpClient::Helper.to_date_time_iso8601(opts.delete(:timestamp)), DateTime) @created_at = (x = opts.delete(:created_at); x.nil? ? nil : HttpClient::Preconditions.assert_class('created_at', HttpClient::Helper.to_date_time_iso8601(x), DateTime)) end
Public Instance Methods
copy(incoming={})
click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 48181 def copy(incoming={}) LabelTrackingSummaryUpdate.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 48185 def to_hash { :timestamp => timestamp, :created_at => created_at } end
to_json()
click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 48177 def to_json JSON.dump(to_hash) end