Class: Io::Flow::V0::Models::AuthorizationUndefinedType

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

Instance Attribute Summary collapse

Attributes inherited from Authorization

#discriminator

Instance Method Summary collapse

Methods inherited from Authorization

from_json

Constructor Details

#initialize(incoming = {}) ⇒ AuthorizationUndefinedType

Returns a new instance of AuthorizationUndefinedType.



9136
9137
9138
9139
9140
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 9136

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.



9134
9135
9136
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 9134

def name
  @name
end

Instance Method Details

#copy(incoming = {}) ⇒ Object



9146
9147
9148
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 9146

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

#subtype_to_hashObject



9142
9143
9144
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 9142

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

#to_hashObject



9150
9151
9152
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 9150

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