Class: Io::Flow::V0::Models::RatecardFeeUndefinedType

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

Instance Attribute Summary collapse

Attributes inherited from RatecardFee

#discriminator

Instance Method Summary collapse

Methods inherited from RatecardFee

from_json

Constructor Details

#initialize(incoming = {}) ⇒ RatecardFeeUndefinedType

Returns a new instance of RatecardFeeUndefinedType.



11420
11421
11422
11423
11424
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 11420

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.



11418
11419
11420
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 11418

def name
  @name
end

Instance Method Details

#copy(incoming = {}) ⇒ Object



11430
11431
11432
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 11430

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

#subtype_to_hashObject



11426
11427
11428
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 11426

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

#to_hashObject



11434
11435
11436
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 11434

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