class AppChain::Address
Public Class Methods
new(str)
click to toggle source
@param str [String]
# File lib/appchain/address.rb, line 6 def initialize(str) @addr = Utils.remove_hex_prefix(str) end
Public Instance Methods
==(other)
click to toggle source
compare address is equal
@param other [AppChain::Address]
# File lib/appchain/address.rb, line 20 def ==(other) addr.casecmp(other.addr) end
addr()
click to toggle source
get address with `0x` prefix
@return [String] address hex string with `0x` prefix
# File lib/appchain/address.rb, line 13 def addr Utils.add_hex_prefix(@addr) end