Class: INat::Entity::Comment

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

#bodytype: String

Returns the body field.

Returns:

  • (type: String)

    the body field



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

field :body, type: String

#created_attype: Time

Returns the created_at field.

Returns:

  • (type: Time)

    the created_at field



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

field :created_at, type: Time, required: true

#flagsArray<item_type: Flag>

Returns the flags field.

Returns:

  • (Array<item_type: Flag>)

    the flags field



27
# File 'lib/inat/data/entity/comment.rb', line 27

links :flags, item_type: Flag, owned: true

#hiddentype: Boolean

Returns the hidden field.

Returns:

  • (type: Boolean)

    the hidden field



25
# File 'lib/inat/data/entity/comment.rb', line 25

field :hidden, type: Boolean, index: true

#observationtype: Observation

Returns the observation field.

Returns:



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

field :observation, type: Observation, index: true

#usertype: User

Returns the user field.

Returns:

  • (type: User)

    the user field



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

field :user, type: User, index: true

#uuidtype: UUID

Returns the uuid field.

Returns:

  • (type: UUID)

    the uuid field



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

field :uuid, type: UUID, unique: true