Sha256: 63caff68ef6dbe525768ea75b01ae20baf52983247785f8f63112000811f3fbe

Contents?: true

Size: 309 Bytes

Versions: 8

Compression:

Stored size: 309 Bytes

Contents

module MoneyTree
  class Address
    attr_accessor :private_key, :public_key
    
    def initialize(opts = {})
      @private_key = MoneyTree::PrivateKey.new key: opts[:private_key]
      @public_key = MoneyTree::PublicKey.new(@private_key)
    end
    
    def to_s
      public_key.to_s
    end

  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
money-tree-0.8.4 lib/money-tree/address.rb
money-tree-0.8.3 lib/money-tree/address.rb
money-tree-0.8.2 lib/money-tree/address.rb
money-tree-0.8.1 lib/money-tree/address.rb
money-tree-0.8.0 lib/money-tree/address.rb
money-tree-0.0.3 lib/money-tree/address.rb
money-tree-0.0.2 lib/money-tree/address.rb
money-tree-0.0.1 lib/money-tree/address.rb