Sha256: 9e1e76b933cfd4b2c59e421156a4cda63bfc40f4a6d06c221bccb401e36c0fb4
Contents?: true
Size: 369 Bytes
Versions: 5
Compression:
Stored size: 369 Bytes
Contents
module MoneyTree class Address attr_reader :private_key, :public_key def initialize(opts = {}) private_key = opts.delete(:private_key) @private_key = MoneyTree::PrivateKey.new({ key: private_key }.merge(opts)) @public_key = MoneyTree::PublicKey.new(@private_key, opts) end def to_s public_key.to_s end end end
Version data entries
5 entries across 5 versions & 1 rubygems