Class: Io::Flow::V0::Models::TierRuleOutcomeUndefinedType

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from TierRuleOutcome

from_json

Constructor Details

#initialize(incoming = {}) ⇒ TierRuleOutcomeUndefinedType

Returns a new instance of TierRuleOutcomeUndefinedType.



4553
4554
4555
4556
4557
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 4553

def initialize(incoming={})
  super(:name => 'undefined_type')
  opts = HttpClient::Helper.symbolize_keys(incoming)
  @name = HttpClient::Preconditions.assert_class('name', opts.delete(:name), String)
end

Instance Attribute Details

#nameObject (readonly)

Returns the value of attribute name.



4551
4552
4553
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 4551

def name
  @name
end

Instance Method Details

#copy(incoming = {}) ⇒ Object



4563
4564
4565
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 4563

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

#subtype_to_hashObject



4559
4560
4561
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 4559

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

#to_hashObject



4567
4568
4569
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 4567

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