Class: Io::Flow::V0::Models::OrderQuotePriceIncluded

Inherits:
OrderQuotePrice show all
Defined in:
lib/flow_commerce/flow_api_v0_client.rb

Instance Attribute Summary collapse

Attributes inherited from OrderQuotePrice

#discriminator

Instance Method Summary collapse

Methods inherited from OrderQuotePrice

from_json, #to_hash

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

#placeholderObject (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_hashObject



53286
53287
53288
53289
53290
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 53286

def subtype_to_hash
  {
    :placeholder => placeholder
  }
end

#to_jsonObject



53278
53279
53280
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 53278

def to_json
  JSON.dump(to_hash)
end