Class: Io::Flow::V0::Models::DeminimisUndefinedType

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

Instance Attribute Summary collapse

Attributes inherited from Deminimis

#discriminator

Instance Method Summary collapse

Methods inherited from Deminimis

from_json

Constructor Details

#initialize(incoming = {}) ⇒ DeminimisUndefinedType

Returns a new instance of DeminimisUndefinedType.



6025
6026
6027
6028
6029
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 6025

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.



6023
6024
6025
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 6023

def name
  @name
end

Instance Method Details

#copy(incoming = {}) ⇒ Object



6035
6036
6037
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 6035

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

#subtype_to_hashObject



6031
6032
6033
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 6031

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

#to_hashObject



6039
6040
6041
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 6039

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