Class: FlowClient::Account

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(address: nil, balance: nil, keys: [], contracts: {}) ⇒ Account

Returns a new instance of Account.



23
24
25
26
27
28
29
# File 'lib/flow_client/account.rb', line 23

def initialize(address: nil, balance: nil, keys: [], contracts: {})
  @keys = keys
  @address = address
  @balance = balance
  @contracts = contracts
  @contracts = {}
end

Instance Attribute Details

#addressObject

Returns the value of attribute address.



21
22
23
# File 'lib/flow_client/account.rb', line 21

def address
  @address
end

#balanceObject

Returns the value of attribute balance.



21
22
23
# File 'lib/flow_client/account.rb', line 21

def balance
  @balance
end

#contractsObject

Returns the value of attribute contracts.



21
22
23
# File 'lib/flow_client/account.rb', line 21

def contracts
  @contracts
end

#keysObject

Returns the value of attribute keys.



21
22
23
# File 'lib/flow_client/account.rb', line 21

def keys
  @keys
end