class Harmony::Api::Configuration
Attributes
faraday[RW]
networks[RW]
verbose[RW]
Public Class Methods
new()
click to toggle source
# File lib/harmony/api/configuration.rb, line 8 def initialize self.networks = { mainnet: { shards: 4, url: 'https://api.s%d.t.hmny.io' }, testnet: { shards: 3, url: 'https://api.s%d.lrtn.hmny.io' }, tnet: { shards: 2, url: 'https://api.s%d.tn.hmny.io' }, os: { shards: 4, url: 'https://api.s%d.os.hmny.io' }, ps: { shards: 2, url: 'https://api.s%d.ps.hmny.io' }, stn: { shards: 2, url: 'https://api.s%d.stn.hmny.io' }, pga: { shards: 2, url: 'https://api.s%d.pga.hmny.io' } } self.faraday = { adapter: :net_http, timeout: 120, open_timeout: 60 } self.verbose = false end