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.



47299
47300
47301
47302
47303
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 47299

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.



47297
47298
47299
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 47297

def placeholder
  @placeholder
end

Instance Method Details

#copy(incoming = {}) ⇒ Object



47309
47310
47311
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 47309

def copy(incoming={})
  OrderQuotePriceIncluded.new(subtype_to_hash.merge(HttpClient::Helper.symbolize_keys(incoming)))
end

#subtype_to_hashObject



47313
47314
47315
47316
47317
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 47313

def subtype_to_hash
  {
    :placeholder => placeholder
  }
end

#to_jsonObject



47305
47306
47307
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 47305

def to_json
  JSON.dump(to_hash)
end