Sha256: a6003f3729d337f697512122a419956f64ccc1f91e261b5d13b0089773721244

Contents?: true

Size: 799 Bytes

Versions: 3

Compression:

Stored size: 799 Bytes

Contents

# frozen_string_literal: true

require_relative '../types/std'
require_relative '../types/extras'
require_relative '../entity'

module INat::Entity
  autoload :Observation, 'inat/data/entity/observation'
  autoload :User,        'inat/data/entity/user'
  autoload :Flag,        'inat/data/entity/flag'
end

class INat::Entity::Comment < INat::Data::Entity

  include INat::Entity

  table :comments

  field :observation, type: Observation, index: true

  field :uuid, type: UUID, unique: true
  field :user, type: User, index: true
  field :created_at, type: Time, required: true
  field :body, type: String
  field :hidden, type: Boolean, index: true

  links :flags, item_type: Flag, owned: true

  ignore :moderator_actions      # TODO: разобраться

  ignore :created_at_details

end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
inat-get-0.8.0.15 lib/inat/data/entity/comment.rb
inat-get-0.8.0.14 lib/inat/data/entity/comment.rb
inat-get-0.8.0.13 lib/inat/data/entity/comment.rb