Class: Naver::Searchad::Api::BusinessChannel::Service

Inherits:
Core::BaseService show all
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

Methods inherited from Core::BaseService

#authorization, #authorization=, #client

Methods included from Core::Logging

#logger

Constructor Details

#initializeService

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', options)
  execute_command(command, &block)
end