Class: Io::Flow::V0::Models::ExperienceFeedSummary
- Inherits:
-
Object
- Object
- Io::Flow::V0::Models::ExperienceFeedSummary
- Defined in:
- lib/flow_commerce/flow_api_v0_client.rb
Instance Attribute Summary collapse
-
#experience ⇒ Object
readonly
Returns the value of attribute experience.
-
#last_construct_date ⇒ Object
readonly
Returns the value of attribute last_construct_date.
-
#url ⇒ Object
readonly
Returns the value of attribute url.
Instance Method Summary collapse
- #copy(incoming = {}) ⇒ Object
-
#initialize(incoming = {}) ⇒ ExperienceFeedSummary
constructor
A new instance of ExperienceFeedSummary.
- #to_hash ⇒ Object
- #to_json ⇒ Object
Constructor Details
#initialize(incoming = {}) ⇒ ExperienceFeedSummary
Returns a new instance of ExperienceFeedSummary.
18313 18314 18315 18316 18317 18318 18319 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 18313 def initialize(incoming={}) opts = HttpClient::Helper.symbolize_keys(incoming) HttpClient::Preconditions.require_keys(opts, [:experience, :url], 'ExperienceFeedSummary') @experience = (x = opts.delete(:experience); x.is_a?(::Io::Flow::V0::Models::ExperienceReference) ? x : ::Io::Flow::V0::Models::ExperienceReference.new(x)) @url = HttpClient::Preconditions.assert_class('url', opts.delete(:url), String) @last_construct_date = (x = opts.delete(:last_construct_date); x.nil? ? nil : HttpClient::Preconditions.assert_class('last_construct_date', HttpClient::Helper.to_date_time_iso8601(x), DateTime)) end |
Instance Attribute Details
#experience ⇒ Object (readonly)
Returns the value of attribute experience.
18311 18312 18313 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 18311 def experience @experience end |
#last_construct_date ⇒ Object (readonly)
Returns the value of attribute last_construct_date.
18311 18312 18313 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 18311 def last_construct_date @last_construct_date end |
#url ⇒ Object (readonly)
Returns the value of attribute url.
18311 18312 18313 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 18311 def url @url end |
Instance Method Details
#copy(incoming = {}) ⇒ Object
18325 18326 18327 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 18325 def copy(incoming={}) ExperienceFeedSummary.new(to_hash.merge(HttpClient::Helper.symbolize_keys(incoming))) end |
#to_hash ⇒ Object
18329 18330 18331 18332 18333 18334 18335 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 18329 def to_hash { :experience => experience.to_hash, :url => url, :last_construct_date => last_construct_date } end |
#to_json ⇒ Object
18321 18322 18323 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 18321 def to_json JSON.dump(to_hash) end |