Class: INat::Entity::ObservationSound

Inherits:
Data::Entity show all
Includes:
INat::Entity
Defined in:
lib/inat/data/entity/observationsound.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:



20
# File 'lib/inat/data/entity/observationsound.rb', line 20

field :observation, type: Observation, index: true

#soundtype: Sound

Returns the sound field.

Returns:

  • (type: Sound)

    the sound field



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

field :sound, type: Sound, required: true

#uuidtype: UUID

Returns the uuid field.

Returns:

  • (type: UUID)

    the uuid field



22
# File 'lib/inat/data/entity/observationsound.rb', line 22

field :uuid, type: UUID, unique: true