Class: Libra::AccessPath
- Inherits:
-
Object
- Object
- Libra::AccessPath
- Defined in:
- lib/libra/access_path.rb
Instance Attribute Summary collapse
-
#address ⇒ Object
Returns the value of attribute address.
-
#path ⇒ Object
Returns the value of attribute path.
Instance Method Summary collapse
-
#initialize(address_hex, path) ⇒ AccessPath
constructor
A new instance of AccessPath.
- #to_proto ⇒ Object
Constructor Details
#initialize(address_hex, path) ⇒ AccessPath
Returns a new instance of AccessPath.
41 42 43 44 |
# File 'lib/libra/access_path.rb', line 41 def initialize(address_hex, path) @address = AccountAddress.new(address_hex) @path = path end |
Instance Attribute Details
#address ⇒ Object
Returns the value of attribute address.
38 39 40 |
# File 'lib/libra/access_path.rb', line 38 def address @address end |
#path ⇒ Object
Returns the value of attribute path.
39 40 41 |
# File 'lib/libra/access_path.rb', line 39 def path @path end |
Instance Method Details
#to_proto ⇒ Object
46 47 48 |
# File 'lib/libra/access_path.rb', line 46 def to_proto Types::AccessPath.new(address: address.addr, path: path) end |