Method: OneAndOne::User#initialize

Defined in:
lib/1and1/user.rb

#initialize(test: false) ⇒ User



11
12
13
14
15
16
17
18
19
20
21
22
# File 'lib/1and1/user.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