Class: Libra::AccessPath

Inherits:
Object
  • Object
show all
Defined in:
lib/libra/access_path.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#addressObject

Returns the value of attribute address.



38
39
40
# File 'lib/libra/access_path.rb', line 38

def address
  @address
end

#pathObject

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_protoObject



46
47
48
# File 'lib/libra/access_path.rb', line 46

def to_proto
	Types::AccessPath.new(address: address.addr, path: path)
end