Class: AdriverApi::Client

Inherits:
Object
  • Object
show all
Includes:
ApiMethods
Defined in:
lib/adriver_api/client.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from ApiMethods

#ad, #adplacements, #ads, #ads_delegated, #banner, #stat_banner

Constructor Details

#initialize(login, pass, debug: false) ⇒ Client

Returns a new instance of Client.



15
16
17
18
19
20
21
# File 'lib/adriver_api/client.rb', line 15

def initialize(, pass, debug: false)
  @login = 
  @password = pass
  @debug = debug
  @connection = init_connection
  refresh_token
end

Instance Attribute Details

#connectionObject (readonly)

Returns the value of attribute connection.



11
12
13
# File 'lib/adriver_api/client.rb', line 11

def connection
  @connection
end

#loginObject (readonly)

Returns the value of attribute login.



10
11
12
# File 'lib/adriver_api/client.rb', line 10

def 
  @login
end