Class: Naver::Searchad::Api::Core::BaseService
- Inherits:
-
Object
- Object
- Naver::Searchad::Api::Core::BaseService
- Defined in:
- lib/naver/searchad/api/core/base_service.rb
Direct Known Subclasses
Ad::Service, AdKeyword::Service, Adgroup::Service, Bizmoney::Service, BusinessChannel::Service, Naver::Searchad::Api::Campaign::Service, Label::Service, RelatedKeywordStat::Service, Stat::Service, StatReport::Service
Instance Attribute Summary collapse
-
#base_path ⇒ Object
readonly
Returns the value of attribute base_path.
-
#client_options ⇒ Object
Returns the value of attribute client_options.
-
#request_options ⇒ Object
Returns the value of attribute request_options.
-
#url ⇒ Object
readonly
Returns the value of attribute url.
Instance Method Summary collapse
- #authorization ⇒ Object
- #authorization=(authorization) ⇒ Object
- #client ⇒ Object
-
#initialize(url, base_path = '') ⇒ BaseService
constructor
A new instance of BaseService.
Methods included from Logging
Constructor Details
#initialize(url, base_path = '') ⇒ BaseService
Returns a new instance of BaseService.
25 26 27 28 29 30 |
# File 'lib/naver/searchad/api/core/base_service.rb', line 25 def initialize(url, base_path = '') @url = url @base_path = base_path @request_options = RequestOptions.default.dup @client_options = ClientOptions.default.dup end |
Instance Attribute Details
#base_path ⇒ Object (readonly)
Returns the value of attribute base_path.
23 24 25 |
# File 'lib/naver/searchad/api/core/base_service.rb', line 23 def base_path @base_path end |
#client_options ⇒ Object
Returns the value of attribute client_options.
21 22 23 |
# File 'lib/naver/searchad/api/core/base_service.rb', line 21 def @client_options end |
#request_options ⇒ Object
Returns the value of attribute request_options.
20 21 22 |
# File 'lib/naver/searchad/api/core/base_service.rb', line 20 def @request_options end |
#url ⇒ Object (readonly)
Returns the value of attribute url.
22 23 24 |
# File 'lib/naver/searchad/api/core/base_service.rb', line 22 def url @url end |
Instance Method Details
#authorization ⇒ Object
36 37 38 |
# File 'lib/naver/searchad/api/core/base_service.rb', line 36 def . end |
#authorization=(authorization) ⇒ Object
32 33 34 |
# File 'lib/naver/searchad/api/core/base_service.rb', line 32 def () @request_options. = end |
#client ⇒ Object
40 41 42 |
# File 'lib/naver/searchad/api/core/base_service.rb', line 40 def client @client ||= new_client end |