Class: Evernote::EDAM::NoteStore::RelatedQuery

Inherits:
Object
  • Object
show all
Includes:
Thrift::Struct, Thrift::Struct_Union
Defined in:
lib/Evernote/EDAM/note_store_types.rb

Overview

entities.

You must specify either noteGuid or plainText, but not both. filter and referenceUri are optional.

noteGuid
The GUID of an existing note in your account for which related entities will be found.
plainText
A string of plain text for which to find related entities. You should provide a text block with a number of characters between EDAM_RELATED_PLAINTEXT_LEN_MIN and EDAM_RELATED_PLAINTEXT_LEN_MAX.
filter
The list of criteria that will constrain the notes being considered related. Please note that some of the parameters may be ignored, such as order and ascending.
referenceUri
A URI string specifying a reference entity, around which "relatedness" should be based. This can be an URL pointing to a web page, for example.

Constant Summary collapse

NOTEGUID =
1
PLAINTEXT =
2
FILTER =
3
REFERENCEURI =
4
FIELDS =
{
  NOTEGUID => {:type => ::Thrift::Types::STRING, :name => 'noteGuid', :optional => true},
  PLAINTEXT => {:type => ::Thrift::Types::STRING, :name => 'plainText', :optional => true},
  FILTER => {:type => ::Thrift::Types::STRUCT, :name => 'filter', :class => ::Evernote::EDAM::NoteStore::NoteFilter, :optional => true},
  REFERENCEURI => {:type => ::Thrift::Types::STRING, :name => 'referenceUri', :optional => true}
}

Constants included from Thrift::Struct_Union

Thrift::Struct_Union::CONTAINER_TYPES

Instance Method Summary collapse

Methods included from Thrift::Struct

#<=>, #==, #differences, #eql?, field_accessor, #fields_with_default_values, generate_accessors, #hash, #initialize, #inspect, qmark_isset_method, #read, #write

Methods included from Thrift::Struct_Union

#each_field, #field_info, #inspect_collection, #inspect_field, #is_container?, #name_to_id, #read_field, #sorted_field_ids, #write_container, #write_data

Instance Method Details

#struct_fieldsObject



968
# File 'lib/Evernote/EDAM/note_store_types.rb', line 968

def struct_fields; FIELDS; end

#validateObject



970
971
# File 'lib/Evernote/EDAM/note_store_types.rb', line 970

def validate
end