Class: Log4ever::EvernoteAuth

Inherits:
Object
  • Object
show all
Defined in:
lib/log4r/evernote.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(auth_token, is_sandbox = false) ⇒ EvernoteAuth

Returns a new instance of EvernoteAuth.



20
21
22
23
24
25
26
# File 'lib/log4r/evernote.rb', line 20

def initialize(auth_token, is_sandbox = false)
  @auth_token = auth_token
  @note_store = EvernoteOAuth::Client.new({
    :token => auth_token,
    :sandbox => is_sandbox
  }).note_store
end

Instance Attribute Details

#auth_tokenObject (readonly)

Returns the value of attribute auth_token.



17
18
19
# File 'lib/log4r/evernote.rb', line 17

def auth_token
  @auth_token
end

#note_storeObject (readonly)

Returns the value of attribute note_store.



18
19
20
# File 'lib/log4r/evernote.rb', line 18

def note_store
  @note_store
end