Class: Braintree::RiskData::LiabilityShift

Inherits:
Object
  • Object
show all
Includes:
BaseModule
Defined in:
lib/braintree/risk_data/liability_shift.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from BaseModule

included

Methods included from BaseModule::Methods

#copy_instance_variables_from_object, #return_object_or_raise, #set_instance_variables_from_hash, #singleton_class

Constructor Details

#initialize(attributes) ⇒ LiabilityShift

Returns a new instance of LiabilityShift.



9
10
11
# File 'lib/braintree/risk_data/liability_shift.rb', line 9

def initialize(attributes)
  set_instance_variables_from_hash attributes unless attributes.nil?
end

Instance Attribute Details

#conditionsObject (readonly)

Returns the value of attribute conditions.



7
8
9
# File 'lib/braintree/risk_data/liability_shift.rb', line 7

def conditions
  @conditions
end

#responsible_partyObject (readonly)

Returns the value of attribute responsible_party.



6
7
8
# File 'lib/braintree/risk_data/liability_shift.rb', line 6

def responsible_party
  @responsible_party
end

Instance Method Details

#inspectObject



13
14
15
16
17
18
19
# File 'lib/braintree/risk_data/liability_shift.rb', line 13

def inspect
  attr_order = [:responsible_party, :conditions]
  formatted_attrs = attr_order.map do |attr|
    "#{attr}: #{send(attr).inspect}"
  end
  "#<LiabilityShift #{formatted_attrs.join(", ")}>"
end