Class: Io::Flow::V0::Models::ExpandableCenterUndefinedType

Inherits:
ExpandableCenter show all
Defined in:
lib/flow_commerce/flow_api_v0_client.rb

Instance Attribute Summary collapse

Attributes inherited from ExpandableCenter

#discriminator

Instance Method Summary collapse

Methods inherited from ExpandableCenter

from_json

Constructor Details

#initialize(incoming = {}) ⇒ ExpandableCenterUndefinedType



7380
7381
7382
7383
7384
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 7380

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.



7378
7379
7380
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 7378

def name
  @name
end

Instance Method Details

#copy(incoming = {}) ⇒ Object



7390
7391
7392
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 7390

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

#subtype_to_hashObject



7386
7387
7388
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 7386

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

#to_hashObject



7394
7395
7396
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 7394

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