Class: Log4ever::EvernoteAuth
- Inherits:
-
Object
- Object
- Log4ever::EvernoteAuth
- Defined in:
- lib/log4r/evernote.rb
Instance Attribute Summary collapse
-
#auth_token ⇒ Object
readonly
Returns the value of attribute auth_token.
-
#note_store ⇒ Object
readonly
Returns the value of attribute note_store.
Instance Method Summary collapse
-
#initialize(auth_token, is_sandbox = false) ⇒ EvernoteAuth
constructor
A new instance of EvernoteAuth.
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_token ⇒ Object (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_store ⇒ Object (readonly)
Returns the value of attribute note_store.
18 19 20 |
# File 'lib/log4r/evernote.rb', line 18 def note_store @note_store end |