Class: Io::Flow::V0::Models::ConsumerInvoiceLineUndefinedType

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

Instance Attribute Summary collapse

Attributes inherited from ConsumerInvoiceLine

#discriminator

Instance Method Summary collapse

Methods inherited from ConsumerInvoiceLine

from_json

Constructor Details

#initialize(incoming = {}) ⇒ ConsumerInvoiceLineUndefinedType

Returns a new instance of ConsumerInvoiceLineUndefinedType.



6747
6748
6749
6750
6751
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 6747

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.



6745
6746
6747
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 6745

def name
  @name
end

Instance Method Details

#copy(incoming = {}) ⇒ Object



6757
6758
6759
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 6757

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

#subtype_to_hashObject



6753
6754
6755
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 6753

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

#to_hashObject



6761
6762
6763
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 6761

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