Class: Io::Flow::V0::Models::GatewayAuthenticationDataUndefinedType

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

Instance Attribute Summary collapse

Attributes inherited from GatewayAuthenticationData

#discriminator

Instance Method Summary collapse

Methods inherited from GatewayAuthenticationData

from_json

Constructor Details

#initialize(incoming = {}) ⇒ GatewayAuthenticationDataUndefinedType

Returns a new instance of GatewayAuthenticationDataUndefinedType.



7862
7863
7864
7865
7866
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 7862

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.



7860
7861
7862
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 7860

def name
  @name
end

Instance Method Details

#copy(incoming = {}) ⇒ Object



7872
7873
7874
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 7872

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

#subtype_to_hashObject



7868
7869
7870
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 7868

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

#to_hashObject



7876
7877
7878
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 7876

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