Class: Payrex::Entities::PayoutTransaction
- Inherits:
-
Object
- Object
- Payrex::Entities::PayoutTransaction
- Defined in:
- lib/entities/payout_transaction.rb
Instance Attribute Summary collapse
-
#amount ⇒ Object
readonly
Returns the value of attribute amount.
-
#created_at ⇒ Object
readonly
Returns the value of attribute created_at.
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#net_amount ⇒ Object
readonly
Returns the value of attribute net_amount.
-
#transaction_id ⇒ Object
readonly
Returns the value of attribute transaction_id.
-
#transaction_type ⇒ Object
readonly
Returns the value of attribute transaction_type.
-
#updated_at ⇒ Object
readonly
Returns the value of attribute updated_at.
Instance Method Summary collapse
-
#initialize(api_resource) ⇒ PayoutTransaction
constructor
A new instance of PayoutTransaction.
Constructor Details
#initialize(api_resource) ⇒ PayoutTransaction
Returns a new instance of PayoutTransaction.
12 13 14 15 16 17 18 19 20 |
# File 'lib/entities/payout_transaction.rb', line 12 def initialize(api_resource) @id = api_resource.data["id"] @amount = api_resource.data["amount"] @net_amount = api_resource.data["net_amount"] @transaction_type = api_resource.data["transaction_type"] @transaction_id = api_resource.data["transaction_id"] @created_at = api_resource.data["created_at"] @updated_at = api_resource.data["updated_at"] end |
Instance Attribute Details
#amount ⇒ Object (readonly)
Returns the value of attribute amount.
4 5 6 |
# File 'lib/entities/payout_transaction.rb', line 4 def amount @amount end |
#created_at ⇒ Object (readonly)
Returns the value of attribute created_at.
4 5 6 |
# File 'lib/entities/payout_transaction.rb', line 4 def created_at @created_at end |
#id ⇒ Object (readonly)
Returns the value of attribute id.
4 5 6 |
# File 'lib/entities/payout_transaction.rb', line 4 def id @id end |
#net_amount ⇒ Object (readonly)
Returns the value of attribute net_amount.
4 5 6 |
# File 'lib/entities/payout_transaction.rb', line 4 def net_amount @net_amount end |
#transaction_id ⇒ Object (readonly)
Returns the value of attribute transaction_id.
4 5 6 |
# File 'lib/entities/payout_transaction.rb', line 4 def transaction_id @transaction_id end |
#transaction_type ⇒ Object (readonly)
Returns the value of attribute transaction_type.
4 5 6 |
# File 'lib/entities/payout_transaction.rb', line 4 def transaction_type @transaction_type end |
#updated_at ⇒ Object (readonly)
Returns the value of attribute updated_at.
4 5 6 |
# File 'lib/entities/payout_transaction.rb', line 4 def updated_at @updated_at end |