Class: Ipfs::Client
- Inherits:
-
Object
- Object
- Ipfs::Client
- Defined in:
- lib/client.rb,
lib/ipfs_api.rb
Constant Summary collapse
- VERSION =
'0.5.0'
Instance Method Summary collapse
- #add(filepath) ⇒ Object
- #cat(multihash) ⇒ Object
- #id ⇒ Object
-
#initialize(server = {}) ⇒ Client
constructor
A new instance of Client.
- #ls(multihash) ⇒ Object
- #version ⇒ Object
Constructor Details
Instance Method Details
#add(filepath) ⇒ Object
27 28 29 |
# File 'lib/client.rb', line 27 def add(filepath) execute Command::Add, filepath end |
#cat(multihash) ⇒ Object
19 20 21 |
# File 'lib/client.rb', line 19 def cat(multihash) execute Command::Cat, multihash end |