Class: Elrond::Api::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/elrond/api/configuration.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

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

#endpointsObject

Returns the value of attribute endpoints.



4
5
6
# File 'lib/elrond/api/configuration.rb', line 4

def endpoints
  @endpoints
end

#faradayObject

Returns the value of attribute faraday.



4
5
6
# File 'lib/elrond/api/configuration.rb', line 4

def faraday
  @faraday
end

#verboseObject

Returns the value of attribute verbose.



4
5
6
# File 'lib/elrond/api/configuration.rb', line 4

def verbose
  @verbose
end