Class: Affirm::ChargeEvent
- Inherits:
-
Object
- Object
- Affirm::ChargeEvent
- Defined in:
- lib/affirm/charge_event.rb
Instance Attribute Summary collapse
-
#amount ⇒ Object
readonly
Returns the value of attribute amount.
-
#created ⇒ Object
readonly
Returns the value of attribute created.
-
#fee ⇒ Object
readonly
Returns the value of attribute fee.
-
#fee_refunded ⇒ Object
readonly
Returns the value of attribute fee_refunded.
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#order_id ⇒ Object
readonly
Returns the value of attribute order_id.
-
#shipping_carrier ⇒ Object
readonly
Returns the value of attribute shipping_carrier.
-
#shipping_confirmation ⇒ Object
readonly
Returns the value of attribute shipping_confirmation.
-
#transaction_id ⇒ Object
readonly
Returns the value of attribute transaction_id.
-
#type ⇒ Object
readonly
Returns the value of attribute type.
Instance Method Summary collapse
-
#initialize(attrs) ⇒ ChargeEvent
constructor
A new instance of ChargeEvent.
Constructor Details
#initialize(attrs) ⇒ ChargeEvent
Returns a new instance of ChargeEvent.
7 8 9 10 11 12 13 14 15 16 17 18 |
# File 'lib/affirm/charge_event.rb', line 7 def initialize(attrs) @id = attrs["id"] @transaction_id = attrs["transaction_id"] @type = attrs["type"] @created = attrs["created"] @amount = attrs["amount"] @fee = attrs["fee"] @order_id = attrs["order_id"] @shipping_carrier = attrs["shipping_carrier"] @shipping_confirmation = attrs["shipping_confirmation"] @fee_refunded = attrs["fee_refunded"] end |
Instance Attribute Details
#amount ⇒ Object (readonly)
Returns the value of attribute amount.
3 4 5 |
# File 'lib/affirm/charge_event.rb', line 3 def amount @amount end |
#created ⇒ Object (readonly)
Returns the value of attribute created.
3 4 5 |
# File 'lib/affirm/charge_event.rb', line 3 def created @created end |
#fee ⇒ Object (readonly)
Returns the value of attribute fee.
3 4 5 |
# File 'lib/affirm/charge_event.rb', line 3 def fee @fee end |
#fee_refunded ⇒ Object (readonly)
Returns the value of attribute fee_refunded.
3 4 5 |
# File 'lib/affirm/charge_event.rb', line 3 def fee_refunded @fee_refunded end |
#id ⇒ Object (readonly)
Returns the value of attribute id.
3 4 5 |
# File 'lib/affirm/charge_event.rb', line 3 def id @id end |
#order_id ⇒ Object (readonly)
Returns the value of attribute order_id.
3 4 5 |
# File 'lib/affirm/charge_event.rb', line 3 def order_id @order_id end |
#shipping_carrier ⇒ Object (readonly)
Returns the value of attribute shipping_carrier.
3 4 5 |
# File 'lib/affirm/charge_event.rb', line 3 def shipping_carrier @shipping_carrier end |
#shipping_confirmation ⇒ Object (readonly)
Returns the value of attribute shipping_confirmation.
3 4 5 |
# File 'lib/affirm/charge_event.rb', line 3 def shipping_confirmation @shipping_confirmation end |
#transaction_id ⇒ Object (readonly)
Returns the value of attribute transaction_id.
3 4 5 |
# File 'lib/affirm/charge_event.rb', line 3 def transaction_id @transaction_id end |
#type ⇒ Object (readonly)
Returns the value of attribute type.
3 4 5 |
# File 'lib/affirm/charge_event.rb', line 3 def type @type end |