Class: Elrond::Api::Configuration
- Inherits:
-
Object
- Object
- Elrond::Api::Configuration
- Defined in:
- lib/elrond/api/configuration.rb
Instance Attribute Summary collapse
-
#endpoints ⇒ Object
Returns the value of attribute endpoints.
-
#faraday ⇒ Object
Returns the value of attribute faraday.
-
#verbose ⇒ Object
Returns the value of attribute verbose.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 |
# File 'lib/elrond/api/configuration.rb', line 6 def initialize self.endpoints = { wallet: { host: "https://api.elrond.com", headers: { "Host" => "wallet-api.elrond.com", "origin" => "https://explorer.elrond.com", "referer" => "https://explorer.elrond.com/" } } } self.faraday = { adapter: :net_http, timeout: 120, open_timeout: 60 } self.verbose = false end |
Instance Attribute Details
#endpoints ⇒ Object
Returns the value of attribute endpoints.
4 5 6 |
# File 'lib/elrond/api/configuration.rb', line 4 def endpoints @endpoints end |
#faraday ⇒ Object
Returns the value of attribute faraday.
4 5 6 |
# File 'lib/elrond/api/configuration.rb', line 4 def faraday @faraday end |
#verbose ⇒ Object
Returns the value of attribute verbose.
4 5 6 |
# File 'lib/elrond/api/configuration.rb', line 4 def verbose @verbose end |