Class: Braintree::RiskData::LiabilityShift
- Inherits:
-
Object
- Object
- Braintree::RiskData::LiabilityShift
- Includes:
- BaseModule
- Defined in:
- lib/braintree/risk_data/liability_shift.rb
Instance Attribute Summary collapse
-
#conditions ⇒ Object
readonly
Returns the value of attribute conditions.
-
#responsible_party ⇒ Object
readonly
Returns the value of attribute responsible_party.
Instance Method Summary collapse
-
#initialize(attributes) ⇒ LiabilityShift
constructor
A new instance of LiabilityShift.
- #inspect ⇒ Object
Methods included from BaseModule
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
#conditions ⇒ Object (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_party ⇒ Object (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
#inspect ⇒ Object
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 |