Class: Io::Flow::V0::Models::PaymentMethodTagUndefinedType

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

Instance Attribute Summary collapse

Attributes inherited from PaymentMethodTag

#discriminator

Instance Method Summary collapse

Methods inherited from PaymentMethodTag

from_json

Constructor Details

#initialize(incoming = {}) ⇒ PaymentMethodTagUndefinedType

Returns a new instance of PaymentMethodTagUndefinedType.



13230
13231
13232
13233
13234
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 13230

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.



13228
13229
13230
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 13228

def name
  @name
end

Instance Method Details

#copy(incoming = {}) ⇒ Object



13240
13241
13242
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 13240

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

#subtype_to_hashObject



13236
13237
13238
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 13236

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

#to_hashObject



13244
13245
13246
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 13244

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