Class: OnlineSim::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/onlinesim/base.rb

Direct Known Subclasses

GetForward, GetFree, GetNumbers, GetProxy, GetRent, GetUser

Constant Summary collapse

HTTP_OK_CODE =
200

Instance Method Summary collapse

Constructor Details

#initialize(apikey: nil, lang: 'en', dev_id: nil) ⇒ Base

Returns a new instance of Base.



18
19
20
21
22
23
24
25
# File 'lib/onlinesim/base.rb', line 18

def initialize(apikey: nil, lang: 'en', dev_id: nil)
  @apikey = apikey
  @lang = lang
  @dev_id = dev_id

  Faraday.ignore_env_proxy = true
  Faraday::Connection.prepend FaradayOverrides
end