Class: IPFS::Connection::NameCommand
- Inherits:
-
Object
- Object
- IPFS::Connection::NameCommand
- Defined in:
- lib/ipfs-api/connection.rb
Overview
:nodoc:
Instance Method Summary collapse
-
#initialize(connection) ⇒ NameCommand
constructor
A new instance of NameCommand.
- #resolve ⇒ Object
Constructor Details
#initialize(connection) ⇒ NameCommand
Returns a new instance of NameCommand.
136 137 138 |
# File 'lib/ipfs-api/connection.rb', line 136 def initialize connection @connection = connection end |
Instance Method Details
#resolve ⇒ Object
140 141 142 143 144 |
# File 'lib/ipfs-api/connection.rb', line 140 def resolve @connection.instance_exec(self) do JSON.parse(post('name/resolve').body)['Path'] end end |