Class: AdriverApi::Client
- Inherits:
-
Object
- Object
- AdriverApi::Client
- Includes:
- ApiMethods
- Defined in:
- lib/adriver_api/client.rb
Instance Attribute Summary collapse
-
#connection ⇒ Object
readonly
Returns the value of attribute connection.
-
#login ⇒ Object
readonly
Returns the value of attribute login.
Instance Method Summary collapse
-
#initialize(login, pass, debug: false) ⇒ Client
constructor
A new instance of Client.
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(login, pass, debug: false) @login = login @password = pass @debug = debug @connection = init_connection refresh_token end |
Instance Attribute Details
#connection ⇒ Object (readonly)
Returns the value of attribute connection.
11 12 13 |
# File 'lib/adriver_api/client.rb', line 11 def connection @connection end |
#login ⇒ Object (readonly)
Returns the value of attribute login.
10 11 12 |
# File 'lib/adriver_api/client.rb', line 10 def login @login end |