Class: Io::Flow::V0::Models::OrderQuotePriceIncluded
- Inherits:
-
OrderQuotePrice
- Object
- OrderQuotePrice
- Io::Flow::V0::Models::OrderQuotePriceIncluded
- Defined in:
- lib/flow_commerce/flow_api_v0_client.rb
Instance Attribute Summary collapse
-
#placeholder ⇒ Object
readonly
Returns the value of attribute placeholder.
Attributes inherited from OrderQuotePrice
Instance Method Summary collapse
- #copy(incoming = {}) ⇒ Object
-
#initialize(incoming = {}) ⇒ OrderQuotePriceIncluded
constructor
A new instance of OrderQuotePriceIncluded.
- #subtype_to_hash ⇒ Object
- #to_json ⇒ Object
Methods inherited from OrderQuotePrice
Constructor Details
#initialize(incoming = {}) ⇒ OrderQuotePriceIncluded
Returns a new instance of OrderQuotePriceIncluded.
49399 49400 49401 49402 49403 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 49399 def initialize(incoming={}) super(:discriminator => OrderQuotePrice::Types::ORDER_QUOTE_PRICE_INCLUDED) opts = HttpClient::Helper.symbolize_keys(incoming) @placeholder = (x = opts.delete(:placeholder); x.nil? ? nil : HttpClient::Preconditions.assert_class('placeholder', x, String)) end |
Instance Attribute Details
#placeholder ⇒ Object (readonly)
Returns the value of attribute placeholder.
49397 49398 49399 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 49397 def placeholder @placeholder end |
Instance Method Details
#copy(incoming = {}) ⇒ Object
49409 49410 49411 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 49409 def copy(incoming={}) OrderQuotePriceIncluded.new(subtype_to_hash.merge(HttpClient::Helper.symbolize_keys(incoming))) end |
#subtype_to_hash ⇒ Object
49413 49414 49415 49416 49417 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 49413 def subtype_to_hash { :placeholder => placeholder } end |
#to_json ⇒ Object
49405 49406 49407 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 49405 def to_json JSON.dump(to_hash) end |