Sha256: bbff3fc0b4af5dcfd6f2297279f061e3445eb4c5d137671d6f14904d9ee64ee6

Contents?: true

Size: 635 Bytes

Versions: 3

Compression:

Stored size: 635 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'
end

class INat::Entity::Vote < INat::Data::Entity

  include INat::Entity

  table :votes

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

  field :created_at, type: Time, index: true, required: true
  field :vote_flag, type: Boolean, index: true
  field :user, type: User, index: true

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

end

Version data entries

3 entries across 3 versions & 1 rubygems

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