Class: INat::Entity::Identification

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

Instance Attribute Summary collapse

Attributes inherited from Data::Entity

#id

Method Summary

Methods included from Data::Types

#radius, radius, #sector, sector

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

#bodytype: String

Returns the body field.

Returns:

  • (type: String)

    the body field



33
# File 'lib/inat/data/entity/identification.rb', line 33

field :body, type: String

#categorytype: IdentificationCategory

Returns the category field.

Returns:



34
# File 'lib/inat/data/entity/identification.rb', line 34

field :category, type: IdentificationCategory, index: true

#created_attype: Time

Returns the created_at field.

Returns:

  • (type: Time)

    the created_at field



32
# File 'lib/inat/data/entity/identification.rb', line 32

field :created_at, type: Time, index: true

#currenttype: Boolean

Returns the current field.

Returns:

  • (type: Boolean)

    the current field



35
# File 'lib/inat/data/entity/identification.rb', line 35

field :current, type: Boolean

#disagreementtype: Boolean

Returns the disagreement field.

Returns:

  • (type: Boolean)

    the disagreement field



38
# File 'lib/inat/data/entity/identification.rb', line 38

field :disagreement, type: Boolean, index: true

#flagsArray<item_type: Flag>

Returns the flags field.

Returns:

  • (Array<item_type: Flag>)

    the flags field



44
# File 'lib/inat/data/entity/identification.rb', line 44

links :flags, item_type: Flag

#hiddentype: Boolean

Returns the hidden field.

Returns:

  • (type: Boolean)

    the hidden field



40
# File 'lib/inat/data/entity/identification.rb', line 40

field :hidden, type: Boolean, index: true

#observationtype: Observation

Returns the observation field.

Returns:



28
# File 'lib/inat/data/entity/identification.rb', line 28

field :observation, type: Observation, index: true

#own_observationtype: Boolean

Returns the own_observation field.

Returns:

  • (type: Boolean)

    the own_observation field



36
# File 'lib/inat/data/entity/identification.rb', line 36

field :own_observation, type: Boolean, index: true

#previous_observation_taxontype: Taxon

Returns the previous_observation_taxon field.

Returns:

  • (type: Taxon)

    the previous_observation_taxon field



42
# File 'lib/inat/data/entity/identification.rb', line 42

field :previous_observation_taxon, type: Taxon, index: true

#spamtype: Boolean

Returns the spam field.

Returns:

  • (type: Boolean)

    the spam field



39
# File 'lib/inat/data/entity/identification.rb', line 39

field :spam, type: Boolean, index: true

#taxontype: Taxon

Returns the taxon field.

Returns:

  • (type: Taxon)

    the taxon field



41
# File 'lib/inat/data/entity/identification.rb', line 41

field :taxon, type: Taxon, index: true

#usertype: User

Returns the user field.

Returns:

  • (type: User)

    the user field



31
# File 'lib/inat/data/entity/identification.rb', line 31

field :user, type: User, index: true, required: true

#uuidtype: UUID

Returns the uuid field.

Returns:

  • (type: UUID)

    the uuid field



30
# File 'lib/inat/data/entity/identification.rb', line 30

field :uuid, type: UUID, unique: true

#visiontype: Boolean

Returns the vision field.

Returns:

  • (type: Boolean)

    the vision field



37
# File 'lib/inat/data/entity/identification.rb', line 37

field :vision, type: Boolean