Class: BitWallet::Addresses

Inherits:
Array
  • Object
show all
Defined in:
lib/bit_wallet/addresses.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(account) ⇒ Addresses

Returns a new instance of Addresses.



6
7
8
# File 'lib/bit_wallet/addresses.rb', line 6

def initialize()
  @account = 
end

Instance Attribute Details

#accountObject (readonly)

Returns the value of attribute account.



4
5
6
# File 'lib/bit_wallet/addresses.rb', line 4

def 
  @account
end

Instance Method Details

#new(address_str = nil) ⇒ Object



10
11
12
13
14
# File 'lib/bit_wallet/addresses.rb', line 10

def new(address_str=nil)
  address = Address.new(@account, address_str)
  self << address
  address
end