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.
53272 53273 53274 53275 53276 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 53272 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.
53270 53271 53272 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 53270 def placeholder @placeholder end |
Instance Method Details
#copy(incoming = {}) ⇒ Object
53282 53283 53284 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 53282 def copy(incoming={}) OrderQuotePriceIncluded.new(subtype_to_hash.merge(HttpClient::Helper.symbolize_keys(incoming))) end |
#subtype_to_hash ⇒ Object
53286 53287 53288 53289 53290 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 53286 def subtype_to_hash { :placeholder => placeholder } end |
#to_json ⇒ Object
53278 53279 53280 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 53278 def to_json JSON.dump(to_hash) end |