Class: Io::Flow::V0::Models::DiscountRuleEntitlementUndefinedType

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

Instance Attribute Summary collapse

Attributes inherited from DiscountRuleEntitlement

#discriminator

Instance Method Summary collapse

Methods inherited from DiscountRuleEntitlement

from_json

Constructor Details

#initialize(incoming = {}) ⇒ DiscountRuleEntitlementUndefinedType

Returns a new instance of DiscountRuleEntitlementUndefinedType.



8577
8578
8579
8580
8581
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 8577

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.



8575
8576
8577
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 8575

def name
  @name
end

Instance Method Details

#copy(incoming = {}) ⇒ Object



8587
8588
8589
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 8587

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

#subtype_to_hashObject



8583
8584
8585
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 8583

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

#to_hashObject



8591
8592
8593
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 8591

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