Class: Io::Flow::V0::Models::FeedStatisticsSummary
- Inherits:
-
Object
- Object
- Io::Flow::V0::Models::FeedStatisticsSummary
- Defined in:
- lib/flow_commerce/flow_api_v0_client.rb
Overview
A brief packet of statistics about a live feed. Will be blank for most new feeds.
Instance Attribute Summary collapse
-
#last_incoming_date ⇒ Object
readonly
Returns the value of attribute last_incoming_date.
Instance Method Summary collapse
- #copy(incoming = {}) ⇒ Object
-
#initialize(incoming = {}) ⇒ FeedStatisticsSummary
constructor
A new instance of FeedStatisticsSummary.
- #to_hash ⇒ Object
- #to_json ⇒ Object
Constructor Details
#initialize(incoming = {}) ⇒ FeedStatisticsSummary
Returns a new instance of FeedStatisticsSummary.
16769 16770 16771 16772 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 16769 def initialize(incoming={}) opts = HttpClient::Helper.symbolize_keys(incoming) @last_incoming_date = (x = opts.delete(:last_incoming_date); x.nil? ? nil : HttpClient::Preconditions.assert_class('last_incoming_date', HttpClient::Helper.to_date_time_iso8601(x), DateTime)) end |
Instance Attribute Details
#last_incoming_date ⇒ Object (readonly)
Returns the value of attribute last_incoming_date.
16767 16768 16769 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 16767 def last_incoming_date @last_incoming_date end |
Instance Method Details
#copy(incoming = {}) ⇒ Object
16778 16779 16780 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 16778 def copy(incoming={}) FeedStatisticsSummary.new(to_hash.merge(HttpClient::Helper.symbolize_keys(incoming))) end |
#to_hash ⇒ Object
16782 16783 16784 16785 16786 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 16782 def to_hash { :last_incoming_date => last_incoming_date } end |
#to_json ⇒ Object
16774 16775 16776 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 16774 def to_json JSON.dump(to_hash) end |