Class: Naver::Searchad::Api::BusinessChannel::Service
- Inherits:
-
Core::BaseService
- Object
- Core::BaseService
- Naver::Searchad::Api::BusinessChannel::Service
- Defined in:
- lib/naver/searchad/api/business-channel/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_channels(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/business-channel/service.rb', line 9 def initialize super('https://api.naver.com/', 'ncc/') end |
Instance Method Details
#list_channels(options: nil, &block) ⇒ Object
13 14 15 16 |
# File 'lib/naver/searchad/api/business-channel/service.rb', line 13 def list_channels(options: nil, &block) command = make_command(:get, 'channels', ) execute_command(command, &block) end |