Class: Wallets::Wallet
- Inherits:
-
Object
- Object
- Wallets::Wallet
- Defined in:
- lib/Wallets.rb
Overview
noinspection ALL
Instance Attribute Summary collapse
-
#current_balance ⇒ Object
readonly
Returns the value of attribute current_balance.
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#last_refresh ⇒ Object
readonly
Returns the value of attribute last_refresh.
-
#object ⇒ Object
readonly
Returns the value of attribute object.
-
#token ⇒ Object
readonly
Returns the value of attribute token.
-
#wallet ⇒ Object
readonly
Returns the value of attribute wallet.
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ Wallet
constructor
A new instance of Wallet.
Constructor Details
#initialize(options = {}) ⇒ Wallet
Returns a new instance of Wallet.
10 11 12 13 14 15 16 17 |
# File 'lib/Wallets.rb', line 10 def initialize( = {}) @id = get_arg(, 'id') @object = get_arg(, 'object') @wallet = get_arg(, 'wallet') @token = get_arg(, 'token') @current_balance = get_arg(, 'current_balance') @last_refresh = get_arg(, 'last_refreshed') end |
Instance Attribute Details
#current_balance ⇒ Object (readonly)
Returns the value of attribute current_balance.
8 9 10 |
# File 'lib/Wallets.rb', line 8 def current_balance @current_balance end |
#id ⇒ Object (readonly)
Returns the value of attribute id.
8 9 10 |
# File 'lib/Wallets.rb', line 8 def id @id end |
#last_refresh ⇒ Object (readonly)
Returns the value of attribute last_refresh.
8 9 10 |
# File 'lib/Wallets.rb', line 8 def last_refresh @last_refresh end |
#object ⇒ Object (readonly)
Returns the value of attribute object.
8 9 10 |
# File 'lib/Wallets.rb', line 8 def object @object end |
#token ⇒ Object (readonly)
Returns the value of attribute token.
8 9 10 |
# File 'lib/Wallets.rb', line 8 def token @token end |
#wallet ⇒ Object (readonly)
Returns the value of attribute wallet.
8 9 10 |
# File 'lib/Wallets.rb', line 8 def wallet @wallet end |