Class: INat::Entity::ObservationPhoto

Inherits:
Data::Entity show all
Includes:
INat::Entity
Defined in:
lib/inat/data/entity/observationphoto.rb

Instance Attribute Summary collapse

Attributes inherited from Data::Entity

#id

Method Summary

Methods inherited from Data::Entity

by_id, #complete?, ddl, fetch, from_db_rows, #get, #init, #initialize, load, load_file, parse, read, #save, #to_db, #update

Methods included from App::Logger::DSL

#debug, debug, echo, #echo, error, #error, #info, info, log, #log, #warning, warning

Methods inherited from Data::Model

DDL, api_limit, api_part, api_path, backs, block, field, fields, has_path?, has_table?, #ignore, #initialize, links, #post_update, #process?, #saved?, table, #to_h, #update

Constructor Details

This class inherits a constructor from INat::Data::Entity

Instance Attribute Details

#observationtype: Observation

Returns the observation field.

Returns:



23
# File 'lib/inat/data/entity/observationphoto.rb', line 23

field :observation, type: Observation, index: true

#phototype: Photo

Returns the photo field.

Returns:

  • (type: Photo)

    the photo field



27
# File 'lib/inat/data/entity/observationphoto.rb', line 27

field :photo, type: Photo, required: true

#positiontype: Integer

Returns the position field.

Returns:

  • (type: Integer)

    the position field



26
# File 'lib/inat/data/entity/observationphoto.rb', line 26

field :position, type: Integer, index: true

#uuidtype: UUID

Returns the uuid field.

Returns:

  • (type: UUID)

    the uuid field



25
# File 'lib/inat/data/entity/observationphoto.rb', line 25

field :uuid, type: UUID, unique: true