Module: Naver::Config

Included in:
Naver
Defined in:
lib/naver/config.rb

Constant Summary collapse

OPTION_KEYS =
[
  :client_id,
  :client_secret,
  :redirect_uri,
  :timeout,
  :debug
]

Instance Method Summary collapse

Instance Method Details

#configure {|_self| ... } ⇒ Object

Yields:

  • (_self)

Yield Parameters:

  • _self (Naver::Config)

    the object that the method was called on


13
14
15
16
# File 'lib/naver/config.rb', line 13

def configure
  yield self
  self
end

#optionsObject


18
19
20
21
22
# File 'lib/naver/config.rb', line 18

def options
  options = {}
  OPTION_KEYS.each{ |key| options[key] = send(key) }
  options
end