Class: Io::Flow::V0::Models::PriceSourceUndefinedType

Inherits:
PriceSource
  • Object
show all
Defined in:
lib/flow_commerce/flow_api_v0_client.rb

Instance Attribute Summary collapse

Attributes inherited from PriceSource

#discriminator

Instance Method Summary collapse

Methods inherited from PriceSource

from_json

Constructor Details

#initialize(incoming = {}) ⇒ PriceSourceUndefinedType

Returns a new instance of PriceSourceUndefinedType.



11270
11271
11272
11273
11274
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 11270

def initialize(incoming={})
  super(:discriminator => 'undefined_type')
  opts = HttpClient::Helper.symbolize_keys(incoming)
  @name = HttpClient::Preconditions.assert_class('name', opts.delete(:discriminator), String)
end

Instance Attribute Details

#nameObject (readonly)

Returns the value of attribute name.



11268
11269
11270
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 11268

def name
  @name
end

Instance Method Details

#copy(incoming = {}) ⇒ Object



11280
11281
11282
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 11280

def copy(incoming={})
  raise 'Operation not supported for undefined type'
end

#subtype_to_hashObject



11276
11277
11278
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 11276

def subtype_to_hash
  raise 'Unable to serialize undefined type to json'
end

#to_hashObject



11284
11285
11286
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 11284

def to_hash
  raise 'Operation not supported for undefined type'
end