Class: Blockfrostruby::IPFS

Inherits:
Net
  • Object
show all
Includes:
IPFSEndpoints
Defined in:
lib/blockfrost-ruby.rb

Constant Summary

Constants included from Blockfrostruby

VERSION

Instance Attribute Summary

Attributes inherited from Net

#config, #project_id, #url

Instance Method Summary collapse

Methods included from IPFSEndpoints

#add_a_file, #get_localstorage_pinned_object, #get_localstorage_pinned_objects_list, #get_relay_to_ipfs_gateway, #pin_an_object, #remove_pinned_object

Methods included from Request

get_response, post_file, post_request_cbor, post_request_raw

Methods included from Params

define_params

Methods included from Validator

validate_init_params, validate_params

Methods included from Configuration

default_config, define_config

Methods included from CustomEndpoints

#get_custom_url, #get_help_info

Constructor Details

#initialize(project_id, config = {}) ⇒ Object

Create an instanse of IPFS object. Using of SDK is a calling methods on such object.

Parameters:

  • project_id (String) —

    the project_id from API

  • config (Hash) (defaults to: {}) —

    a config with params: use_asc_order_as_default, default_count_per_page, parallel_requests, sleep_between_retries_ms



117
118
119
120
# File 'lib/blockfrost-ruby.rb', line 117

def initialize(project_id, config = {})
  super
  @url = IPFS_URL
end