Class: INat::Entity::Vote
- Inherits:
-
Data::Entity
- Object
- Data::Model
- Data::Entity
- INat::Entity::Vote
- Includes:
- INat::Entity
- Defined in:
- lib/inat/data/entity/vote.rb
Instance Attribute Summary collapse
-
#created_at ⇒ type: Time
field :observation, type: Observation, index: true, required: true.
-
#user ⇒ type: User
The
user
field. -
#vote_flag ⇒ type: Boolean
The
vote_flag
field.
Attributes inherited from Data::Entity
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
#created_at ⇒ type: Time
field :observation, type: Observation, index: true, required: true
20 |
# File 'lib/inat/data/entity/vote.rb', line 20 field :created_at, type: Time, index: true, required: true |