Class: Payrex::Entities::Payout

Inherits:
Object
  • Object
show all
Defined in:
lib/entities/payout.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#amountObject (readonly)

Returns the value of attribute amount.



4
5
6
# File 'lib/entities/payout.rb', line 4

def amount
  @amount
end

#created_atObject (readonly)

Returns the value of attribute created_at.



4
5
6
# File 'lib/entities/payout.rb', line 4

def created_at
  @created_at
end

#destinationObject (readonly)

Returns the value of attribute destination.



4
5
6
# File 'lib/entities/payout.rb', line 4

def destination
  @destination
end

#idObject (readonly)

Returns the value of attribute id.



4
5
6
# File 'lib/entities/payout.rb', line 4

def id
  @id
end

#livemodeObject (readonly)

Returns the value of attribute livemode.



4
5
6
# File 'lib/entities/payout.rb', line 4

def livemode
  @livemode
end

#net_amountObject (readonly)

Returns the value of attribute net_amount.



4
5
6
# File 'lib/entities/payout.rb', line 4

def net_amount
  @net_amount
end

#statusObject (readonly)

Returns the value of attribute status.



4
5
6
# File 'lib/entities/payout.rb', line 4

def status
  @status
end

#updated_atObject (readonly)

Returns the value of attribute updated_at.



4
5
6
# File 'lib/entities/payout.rb', line 4

def updated_at
  @updated_at
end