Class: Blockfrostruby::Net

Inherits:
Object
  • Object
show all
Includes:
Configuration, CustomEndpoints
Defined in:
lib/blockfrost-ruby.rb

Direct Known Subclasses

CardanoMainNet, IPFS

Constant Summary

Constants included from Blockfrostruby

VERSION

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from CustomEndpoints

#get_custom_url, #get_help_info

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

Constructor Details

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

Returns a new instance of Net.



35
36
37
38
39
# File 'lib/blockfrost-ruby.rb', line 35

def initialize(project_id, config = {})
  @project_id = project_id
  @url = nil
  @config = Configuration.define_config(config)
end

Instance Attribute Details

#config ⇒ Object (readonly)

Returns the value of attribute config.



33
34
35
# File 'lib/blockfrost-ruby.rb', line 33

def config
  @config
end

#project_id ⇒ Object (readonly)

Returns the value of attribute project_id.



33
34
35
# File 'lib/blockfrost-ruby.rb', line 33

def project_id
  @project_id
end

#url ⇒ Object (readonly)

Returns the value of attribute url.



33
34
35
# File 'lib/blockfrost-ruby.rb', line 33

def url
  @url
end