Class: INat::Entity::Identification
- Inherits:
-
Data::Entity
- Object
- Data::Model
- Data::Entity
- INat::Entity::Identification
- Includes:
- Data::Types, INat::Entity
- Defined in:
- lib/inat/data/entity/identification.rb
Instance Attribute Summary collapse
-
#body ⇒ type: String
The
body
field. -
#category ⇒ type: IdentificationCategory
The
category
field. -
#created_at ⇒ type: Time
The
created_at
field. -
#current ⇒ type: Boolean
The
current
field. -
#disagreement ⇒ type: Boolean
The
disagreement
field. -
#flags ⇒ Array<item_type: Flag>
The
flags
field. -
#hidden ⇒ type: Boolean
The
hidden
field. -
#observation ⇒ type: Observation
The
observation
field. -
#own_observation ⇒ type: Boolean
The
own_observation
field. -
#previous_observation_taxon ⇒ type: Taxon
The
previous_observation_taxon
field. -
#spam ⇒ type: Boolean
The
spam
field. -
#taxon ⇒ type: Taxon
The
taxon
field. -
#user ⇒ type: User
The
user
field. -
#uuid ⇒ type: UUID
The
uuid
field. -
#vision ⇒ type: Boolean
The
vision
field.
Attributes inherited from Data::Entity
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
#body ⇒ type: String
Returns the body
field.
33 |
# File 'lib/inat/data/entity/identification.rb', line 33 field :body, type: String |
#category ⇒ type: IdentificationCategory
Returns the category
field.
34 |
# File 'lib/inat/data/entity/identification.rb', line 34 field :category, type: IdentificationCategory, index: true |
#created_at ⇒ type: Time
Returns the created_at
field.
32 |
# File 'lib/inat/data/entity/identification.rb', line 32 field :created_at, type: Time, index: true |
#current ⇒ type: Boolean
Returns the current
field.
35 |
# File 'lib/inat/data/entity/identification.rb', line 35 field :current, type: Boolean |
#disagreement ⇒ type: Boolean
Returns the disagreement
field.
38 |
# File 'lib/inat/data/entity/identification.rb', line 38 field :disagreement, type: Boolean, index: true |
#flags ⇒ Array<item_type: Flag>
Returns the flags
field.
44 |
# File 'lib/inat/data/entity/identification.rb', line 44 links :flags, item_type: Flag |
#hidden ⇒ type: Boolean
Returns the hidden
field.
40 |
# File 'lib/inat/data/entity/identification.rb', line 40 field :hidden, type: Boolean, index: true |
#observation ⇒ type: Observation
Returns the observation
field.
28 |
# File 'lib/inat/data/entity/identification.rb', line 28 field :observation, type: Observation, index: true |
#own_observation ⇒ type: Boolean
Returns the own_observation
field.
36 |
# File 'lib/inat/data/entity/identification.rb', line 36 field :own_observation, type: Boolean, index: true |
#previous_observation_taxon ⇒ type: Taxon
Returns the previous_observation_taxon
field.
42 |
# File 'lib/inat/data/entity/identification.rb', line 42 field :previous_observation_taxon, type: Taxon, index: true |
#spam ⇒ type: Boolean
Returns the spam
field.
39 |
# File 'lib/inat/data/entity/identification.rb', line 39 field :spam, type: Boolean, index: true |
#taxon ⇒ type: Taxon
Returns the taxon
field.
41 |
# File 'lib/inat/data/entity/identification.rb', line 41 field :taxon, type: Taxon, index: true |
#user ⇒ type: User
Returns the user
field.
31 |
# File 'lib/inat/data/entity/identification.rb', line 31 field :user, type: User, index: true, required: true |