Class: Io::Flow::V0::Models::ServiceFeeUndefinedType

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

Instance Attribute Summary collapse

Attributes inherited from ServiceFee

#discriminator

Instance Method Summary collapse

Methods inherited from ServiceFee

from_json

Constructor Details

#initialize(incoming = {}) ⇒ ServiceFeeUndefinedType

Returns a new instance of ServiceFeeUndefinedType.



11254
11255
11256
11257
11258
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 11254

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.



11252
11253
11254
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 11252

def name
  @name
end

Instance Method Details

#copy(incoming = {}) ⇒ Object



11264
11265
11266
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 11264

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

#subtype_to_hashObject



11260
11261
11262
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 11260

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

#to_hashObject



11268
11269
11270
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 11268

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