Class: Payrex::Entities::Payout
- Inherits:
-
Object
- Object
- Payrex::Entities::Payout
- Defined in:
- lib/entities/payout.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.
-
#destination ⇒ Object
readonly
Returns the value of attribute destination.
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#livemode ⇒ Object
readonly
Returns the value of attribute livemode.
-
#net_amount ⇒ Object
readonly
Returns the value of attribute net_amount.
-
#status ⇒ Object
readonly
Returns the value of attribute status.
-
#updated_at ⇒ Object
readonly
Returns the value of attribute updated_at.
Instance Method Summary collapse
-
#initialize(api_resource) ⇒ Payout
constructor
A new instance of Payout.
Constructor Details
#initialize(api_resource) ⇒ Payout
Returns a new instance of Payout.
13 14 15 16 17 18 19 20 21 22 |
# File 'lib/entities/payout.rb', line 13 def initialize(api_resource) @id = api_resource.data["id"] @amount = api_resource.data["amount"] @destination = api_resource.data["destination"] @livemode = api_resource.data["livemode"] @net_amount = api_resource.data["net_amount"] @status = api_resource.data["status"] @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.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.rb', line 4 def created_at @created_at end |
#destination ⇒ Object (readonly)
Returns the value of attribute destination.
4 5 6 |
# File 'lib/entities/payout.rb', line 4 def destination @destination end |
#id ⇒ Object (readonly)
Returns the value of attribute id.
4 5 6 |
# File 'lib/entities/payout.rb', line 4 def id @id end |
#livemode ⇒ Object (readonly)
Returns the value of attribute livemode.
4 5 6 |
# File 'lib/entities/payout.rb', line 4 def livemode @livemode end |
#net_amount ⇒ Object (readonly)
Returns the value of attribute net_amount.
4 5 6 |
# File 'lib/entities/payout.rb', line 4 def net_amount @net_amount end |
#status ⇒ Object (readonly)
Returns the value of attribute status.
4 5 6 |
# File 'lib/entities/payout.rb', line 4 def status @status end |
#updated_at ⇒ Object (readonly)
Returns the value of attribute updated_at.
4 5 6 |
# File 'lib/entities/payout.rb', line 4 def updated_at @updated_at end |