Class: Wallets::Wallet

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

Overview

noinspection ALL

Instance Attribute Summary collapse

Instance Method Summary collapse

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(options = {})
  @id = get_arg(options, 'id')
  @object = get_arg(options, 'object')
  @wallet = get_arg(options, 'wallet')
  @token = get_arg(options, 'token')
  @current_balance = get_arg(options, 'current_balance')
  @last_refresh = get_arg(options, 'last_refreshed')
end

Instance Attribute Details

#current_balanceObject (readonly)

Returns the value of attribute current_balance.



8
9
10
# File 'lib/Wallets.rb', line 8

def current_balance
  @current_balance
end

#idObject (readonly)

Returns the value of attribute id.



8
9
10
# File 'lib/Wallets.rb', line 8

def id
  @id
end

#last_refreshObject (readonly)

Returns the value of attribute last_refresh.



8
9
10
# File 'lib/Wallets.rb', line 8

def last_refresh
  @last_refresh
end

#objectObject (readonly)

Returns the value of attribute object.



8
9
10
# File 'lib/Wallets.rb', line 8

def object
  @object
end

#tokenObject (readonly)

Returns the value of attribute token.



8
9
10
# File 'lib/Wallets.rb', line 8

def token
  @token
end

#walletObject (readonly)

Returns the value of attribute wallet.



8
9
10
# File 'lib/Wallets.rb', line 8

def wallet
  @wallet
end