Class: Blockfrostruby::Net
- Inherits:
-
Object
- Object
- Blockfrostruby::Net
- Includes:
- Configuration, CustomEndpoints
- Defined in:
- lib/blockfrost-ruby.rb
Direct Known Subclasses
Constant Summary
Constants included from Blockfrostruby
Instance Attribute Summary collapse
-
#config ⇒ Object
readonly
Returns the value of attribute config.
-
#project_id ⇒ Object
readonly
Returns the value of attribute project_id.
-
#url ⇒ Object
readonly
Returns the value of attribute url.
Instance Method Summary collapse
-
#initialize(project_id, config = {}) ⇒ Net
constructor
A new instance of Net.
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
Methods included from Validator
validate_init_params, validate_params
Methods included from Configuration
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 |