Class: Fintoc::V1::Balance
- Inherits:
-
Object
- Object
- Fintoc::V1::Balance
- Defined in:
- lib/fintoc/v1/resources/balance.rb
Instance Attribute Summary collapse
-
#available ⇒ Object
readonly
Returns the value of attribute available.
-
#current ⇒ Object
readonly
Returns the value of attribute current.
-
#limit ⇒ Object
readonly
Returns the value of attribute limit.
Instance Method Summary collapse
- #id ⇒ Object
-
#initialize(available:, current:, limit:) ⇒ Balance
constructor
A new instance of Balance.
- #inspect ⇒ Object
- #to_s ⇒ Object
Constructor Details
#initialize(available:, current:, limit:) ⇒ Balance
Returns a new instance of Balance.
8 9 10 11 12 |
# File 'lib/fintoc/v1/resources/balance.rb', line 8 def initialize(available:, current:, limit:) @available = available @current = current @limit = limit end |
Instance Attribute Details
#available ⇒ Object (readonly)
Returns the value of attribute available.
6 7 8 |
# File 'lib/fintoc/v1/resources/balance.rb', line 6 def available @available end |
#current ⇒ Object (readonly)
Returns the value of attribute current.
6 7 8 |
# File 'lib/fintoc/v1/resources/balance.rb', line 6 def current @current end |
#limit ⇒ Object (readonly)
Returns the value of attribute limit.
6 7 8 |
# File 'lib/fintoc/v1/resources/balance.rb', line 6 def limit @limit end |
Instance Method Details
#id ⇒ Object
14 15 16 |
# File 'lib/fintoc/v1/resources/balance.rb', line 14 def id object_id end |
#inspect ⇒ Object
22 23 24 |
# File 'lib/fintoc/v1/resources/balance.rb', line 22 def inspect "<Fintoc::V1::Balance #{@available} (#{@current})>" end |
#to_s ⇒ Object
18 19 20 |
# File 'lib/fintoc/v1/resources/balance.rb', line 18 def to_s "#{@available} (#{@current})" end |