module Naver::Configuration

Defines constants and methods related to configuration.

Defines constants and methods related to configuration.

Constants

DEFAULT_API_BASE_URI

Base URI for the NAVER API.

DEFAULT_OAUTH_BASE_URI

Base URI for NAVER OAuth.

DEFAULT_USER_AGENT

The user agent that will be sent to the API endpoint if none is set.

OPTION_KEYS

An array of valid keys in the options hash when configuring a Naver::Client.

Public Instance Methods

configure() { |self| ... } click to toggle source

Convenience method to allow configuration options to be set in a block.

# File lib/naver/configration.rb, line 19
def configure
  yield(self)
end
options() click to toggle source

Creates a hash of options and their values.

# File lib/naver/configration.rb, line 24
def options
  options = {}
  OPTION_KEYS.each { |key| options[key] = send(key) }
  options
end