Class Evernote::EDAM::Type::ResourceAttributes
In: ruby/lib/Evernote/EDAM/types_types.rb
Parent: Object

Structure holding the optional attributes of a Resource <dl> <dt>sourceURL</dt>

  <dd>the original location where the resource was hosted
  <br/>
   Length:  EDAM_ATTRIBUTE_LEN_MIN - EDAM_ATTRIBUTE_LEN_MAX
  </dd>

<dt>timestamp</dt>

  <dd>the date and time that is associated with this resource
  (e.g. the time embedded in an image from a digital camera with a clock)
  </dd>

<dt>latitude</dt>

  <dd>the latitude where the resource was captured
  </dd>

<dt>longitude</dt>

  <dd>the longitude where the resource was captured
  </dd>

<dt>altitude</dt>

  <dd>the altitude where the resource was captured
  </dd>

<dt>cameraMake</dt>

  <dd>information about an image's camera, e.g. as embedded in
  the image's EXIF data
  <br/>
  Length:  EDAM_ATTRIBUTE_LEN_MIN - EDAM_ATTRIBUTE_LEN_MAX
  </dd>

<dt>cameraModel</dt>

  <dd>information about an image's camera, e.g. as embedded
  in the image's EXIF data
  <br/>
  Length:  EDAM_ATTRIBUTE_LEN_MIN - EDAM_ATTRIBUTE_LEN_MAX
  </dd>

<dt>clientWillIndex</dt>

  <dd>if true, then the original client that submitted
  the resource plans to submit the recognition index for this resource at a
  later time.
  </dd>

<dt>recoType</dt>

  <dd>DEPRECATED - this field is no longer set by the service, so should
    be ignored.
  </dd>

<dt>fileName</dt>

  <dd>if the resource came from a source that provided an
  explicit file name, the original name will be stored here.  Many resources
  come from unnamed sources, so this will not always be set.
  </dd>

<dt>attachment</dt>

  <dd>this will be true if the resource is a Premium file attachment.  This
  will be available within the search grammar so that you can identify
  notes that contain attachments.
  </dd>

</dl>

Methods

Included Modules

::Thrift::Struct ::Thrift::Struct_Union

Constants

SOURCEURL = 1
TIMESTAMP = 2
LATITUDE = 3
LONGITUDE = 4
ALTITUDE = 5
CAMERAMAKE = 6
CAMERAMODEL = 7
CLIENTWILLINDEX = 8
RECOTYPE = 9
FILENAME = 10
ATTACHMENT = 11
FIELDS = { SOURCEURL => {:type => ::Thrift::Types::STRING, :name => 'sourceURL', :optional => true}, TIMESTAMP => {:type => ::Thrift::Types::I64, :name => 'timestamp', :optional => true}, LATITUDE => {:type => ::Thrift::Types::DOUBLE, :name => 'latitude', :optional => true}, LONGITUDE => {:type => ::Thrift::Types::DOUBLE, :name => 'longitude', :optional => true}, ALTITUDE => {:type => ::Thrift::Types::DOUBLE, :name => 'altitude', :optional => true}, CAMERAMAKE => {:type => ::Thrift::Types::STRING, :name => 'cameraMake', :optional => true}, CAMERAMODEL => {:type => ::Thrift::Types::STRING, :name => 'cameraModel', :optional => true}, CLIENTWILLINDEX => {:type => ::Thrift::Types::BOOL, :name => 'clientWillIndex', :optional => true}, RECOTYPE => {:type => ::Thrift::Types::STRING, :name => 'recoType', :optional => true}, FILENAME => {:type => ::Thrift::Types::STRING, :name => 'fileName', :optional => true}, ATTACHMENT => {:type => ::Thrift::Types::BOOL, :name => 'attachment', :optional => true}

Public Instance methods

[Source]

     # File ruby/lib/Evernote/EDAM/types_types.rb, line 726
726:               def struct_fields; FIELDS; end

[Source]

     # File ruby/lib/Evernote/EDAM/types_types.rb, line 728
728:               def validate
729:               end

[Validate]