Method: OneAndOne::Vpn#initialize

Defined in:
lib/1and1/vpn.rb

#initialize(test: false) ⇒ Vpn

Returns a new instance of Vpn.



11
12
13
14
15
16
17
18
19
20
21
22
# File 'lib/1and1/vpn.rb', line 11

def initialize(test: false)
  @id = nil
  @specs = nil

  # Check if hitting mock api or live api
  if test
    @connection = Excon.new($base_url, :mock => true)
  else
    @connection = Excon.new($base_url)
  end

end