Class: INat::Entity::Flag

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

#commenttype: String

Returns the comment field.

Returns:

  • (type: String)

    the comment field



24
# File 'lib/inat/data/entity/flag.rb', line 24

field :comment, type: String

#created_attype: Time

Returns the created_at field.

Returns:

  • (type: Time)

    the created_at field



19
# File 'lib/inat/data/entity/flag.rb', line 19

field :created_at, type: Time

#flagtype: String

Returns the flag field.

Returns:

  • (type: String)

    the flag field



18
# File 'lib/inat/data/entity/flag.rb', line 18

field :flag, type: String, required: true

#resolvedtype: Boolean

Returns the resolved field.

Returns:

  • (type: Boolean)

    the resolved field



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

field :resolved, type: Boolean, index: true

#resolvertype: User

Returns the resolver field.

Returns:

  • (type: User)

    the resolver field



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

field :resolver, type: User, index: true

#updated_attype: Time

Returns the updated_at field.

Returns:

  • (type: Time)

    the updated_at field



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

field :updated_at, type: Time

#usertype: User

Returns the user field.

Returns:

  • (type: User)

    the user field



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

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