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.



9978
9979
9980
9981
9982
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 9978

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.



9976
9977
9978
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 9976

def name
  @name
end

Instance Method Details

#copy(incoming = {}) ⇒ Object



9988
9989
9990
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 9988

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

#subtype_to_hashObject



9984
9985
9986
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 9984

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

#to_hashObject



9992
9993
9994
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 9992

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