Class: INat::Entity::Vote

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

#created_attype: Time

field :observation, type: Observation, index: true, required: true

Returns:

  • (type: Time)

    the created_at field



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

field :created_at, type: Time, index: true, required: true

#usertype: User

Returns the user field.

Returns:

  • (type: User)

    the user field



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

field :user, type: User, index: true

#vote_flagtype: Boolean

Returns the vote_flag field.

Returns:

  • (type: Boolean)

    the vote_flag field



21
# File 'lib/inat/data/entity/vote.rb', line 21

field :vote_flag, type: Boolean, index: true