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.



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

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



49413
49414
49415
49416
49417
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 49413

def subtype_to_hash
  {
    :placeholder => placeholder
  }
end

#to_jsonObject



49405
49406
49407
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 49405

def to_json
  JSON.dump(to_hash)
end