Class: Faker::Blockchain::Ethereum
- Inherits:
-
Faker::Base
- Object
- Faker::Base
- Faker::Blockchain::Ethereum
- Defined in:
- lib/faker/blockchain/ethereum.rb
Constant Summary
Constants inherited from Faker::Base
Faker::Base::Letters, Faker::Base::Numbers, Faker::Base::ULetters
Class Method Summary collapse
Methods inherited from Faker::Base
bothify, disable_enforce_available_locales, fetch, fetch_all, flexible, letterify, method_missing, numerify, parse, rand, rand_in_range, regexify, resolve, respond_to_missing?, sample, shuffle, translate, unique, with_locale
Class Method Details
.address ⇒ Object
7 8 9 10 11 12 |
# File 'lib/faker/blockchain/ethereum.rb', line 7 def address hex_alphabet = '0123456789abcdef' var = +'0x' 40.times { var << sample(shuffle(hex_alphabet.split(''))) } var end |