Class: Io::Flow::V0::Models::MerchantApplicationFormUndefinedType

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

Instance Attribute Summary collapse

Attributes inherited from MerchantApplicationForm

#discriminator

Instance Method Summary collapse

Methods inherited from MerchantApplicationForm

from_json

Constructor Details

#initialize(incoming = {}) ⇒ MerchantApplicationFormUndefinedType

Returns a new instance of MerchantApplicationFormUndefinedType.



12123
12124
12125
12126
12127
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 12123

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.



12121
12122
12123
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 12121

def name
  @name
end

Instance Method Details

#copy(incoming = {}) ⇒ Object



12133
12134
12135
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 12133

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

#subtype_to_hashObject



12129
12130
12131
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 12129

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

#to_hashObject



12137
12138
12139
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 12137

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