Class: Naver::Searchad::Api::Label::Service
- Inherits:
-
Core::BaseService
- Object
- Core::BaseService
- Naver::Searchad::Api::Label::Service
- Defined in:
- lib/naver/searchad/api/label/service.rb
Instance Attribute Summary
Attributes inherited from Core::BaseService
#base_path, #client_options, #request_options, #url
Instance Method Summary collapse
-
#initialize ⇒ Service
constructor
A new instance of Service.
- #list_labels(options: nil, &block) ⇒ Object
Methods inherited from Core::BaseService
#authorization, #authorization=, #client
Methods included from Core::Logging
Constructor Details
#initialize ⇒ Service
Returns a new instance of Service.
9 10 11 |
# File 'lib/naver/searchad/api/label/service.rb', line 9 def initialize super('https://api.naver.com/', 'ncc/') end |
Instance Method Details
#list_labels(options: nil, &block) ⇒ Object
13 14 15 16 |
# File 'lib/naver/searchad/api/label/service.rb', line 13 def list_labels(options: nil, &block) command = make_command(:get, 'labels', ) execute_command(command, &block) end |