Class: K2e::EvernoteClient

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeEvernoteClient

Returns a new instance of EvernoteClient.



10
11
12
13
# File 'lib/k2e/evernote.rb', line 10

def initialize
  @token = ENV["EVERNOTE_DEV_TOKEN"]
  @note_store = ::EvernoteOAuth::Client.new(token: @token, sandbox: false).note_store
end

Instance Attribute Details

#note_storeObject (readonly)

Returns the value of attribute note_store.



8
9
10
# File 'lib/k2e/evernote.rb', line 8

def note_store
  @note_store
end

#tokenObject (readonly)

Returns the value of attribute token.



8
9
10
# File 'lib/k2e/evernote.rb', line 8

def token
  @token
end