Class: INat::Entity::Comment
- Inherits:
-
Data::Entity
- Object
- Data::Model
- Data::Entity
- INat::Entity::Comment
- Includes:
- INat::Entity
- Defined in:
- lib/inat/data/entity/comment.rb
Instance Attribute Summary collapse
-
#body ⇒ type: String
The
body
field. -
#created_at ⇒ type: Time
The
created_at
field. -
#flags ⇒ Array<item_type: Flag>
The
flags
field. -
#hidden ⇒ type: Boolean
The
hidden
field. -
#observation ⇒ type: Observation
The
observation
field. -
#user ⇒ type: User
The
user
field. -
#uuid ⇒ type: UUID
The
uuid
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
#body ⇒ type: String
Returns the body
field.
24 |
# File 'lib/inat/data/entity/comment.rb', line 24 field :body, type: String |
#created_at ⇒ type: Time
Returns the created_at
field.
23 |
# File 'lib/inat/data/entity/comment.rb', line 23 field :created_at, type: Time, required: true |
#flags ⇒ Array<item_type: Flag>
Returns the flags
field.
27 |
# File 'lib/inat/data/entity/comment.rb', line 27 links :flags, item_type: Flag, owned: true |
#hidden ⇒ type: Boolean
Returns the hidden
field.
25 |
# File 'lib/inat/data/entity/comment.rb', line 25 field :hidden, type: Boolean, index: true |
#observation ⇒ type: Observation
Returns the observation
field.
19 |
# File 'lib/inat/data/entity/comment.rb', line 19 field :observation, type: Observation, index: true |