Class: EvernoteOAuth::SharedNoteStore::Store

Inherits:
Object
  • Object
show all
Includes:
ThriftClientDelegation
Defined in:
lib/evernote_oauth/shared_note_store.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from ThriftClientDelegation

#method_missing

Constructor Details

#initialize(options = {}) ⇒ Store

Returns a new instance of Store.



22
23
24
25
26
27
# File 'lib/evernote_oauth/shared_note_store.rb', line 22

def initialize(options={})
  @linked_notebook = options[:linked_notebook]
  @client = options[:client]
  @token = authenticateToSharedNotebook(@linked_notebook.shareKey,
                                        options[:token]).authenticationToken
end

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class EvernoteOAuth::ThriftClientDelegation

Instance Attribute Details

#tokenObject (readonly)

Returns the value of attribute token.



20
21
22
# File 'lib/evernote_oauth/shared_note_store.rb', line 20

def token
  @token
end