class Evernote::EDAM::Type::Resource

Public Instance Methods

note(options={}) click to toggle source

Returns the note that holds this resource.

@param options [Hash] options for {dev.evernote.com/documentation/reference/NoteStore.html#Fn_NoteStore_getNote}. @option options [String] :with_content @option options [String] :with_resources_data @option options [String] :with_resources_recognition @option options [String] :with_resources_alternate_data @return [Evernote::EDAM::Type::Note]

# 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