Class: Faker::Bitcoin

Inherits:
Base
  • Object
show all
Defined in:
lib/faker/bitcoin.rb

Constant Summary collapse

PROTOCOL_VERSIONS =
{
  main: 0,
  testnet: 111
}

Constants inherited from Base

Faker::Base::Letters, Faker::Base::Numbers, Faker::Base::ULetters

Class Method Summary collapse

Methods inherited from Base

bothify, fetch, flexible, letterify, method_missing, numerify, parse, rand_in_range, regexify, translate

Class Method Details

.addressObject



13
14
15
# File 'lib/faker/bitcoin.rb', line 13

def address
  address_for(:main)
end

.testnet_addressObject



17
18
19
# File 'lib/faker/bitcoin.rb', line 17

def testnet_address
  address_for(:testnet)
end