Class: Evernote::EDAM::Type::Resource

Inherits:
Object
  • Object
show all
Defined in:
lib/evernote/edam/type/resource.rb

Instance Method Summary collapse

Instance Method Details

#note(options = {}) ⇒ Evernote::EDAM::Type::Note

Returns the note that holds this resource.

Parameters:

Options Hash (options):

  • :with_content (String)
  • :with_resources_data (String)
  • :with_resources_recognition (String)
  • :with_resources_alternate_data (String)

Returns:



15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
# File 'lib/evernote/edam/type/resource.rb', line 15

def note(options={})
  options = {
    with_content: false,
    with_resources_data: false,
    with_resources_recognition: false,
    with_resources_alternate_data: false
  }.merge(options)

  @note_by_opions[options] ||
    (@note_by_options[options] = note_store.getNote(
      noteGuid,
      options[:with_content],
      options[:with_resources_data],
      options[:with_resources_recognition],
      options[:with_resources_alternate_data])
    )
end