Sha256: 968bae8574bdde4b8f0294a78b9af35949384bb877ac33255dd5b4ff1f1a1c5a

Contents?: true

Size: 557 Bytes

Versions: 2

Compression:

Stored size: 557 Bytes

Contents

# frozen_string_literal: true

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

autoload :Observation, 'inat/data/entity/observation'
autoload :User,        'inat/data/entity/user'

class Vote < 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

2 entries across 2 versions & 1 rubygems

Version Path
inat-get-0.8.0.12 lib/inat/data/entity/vote.rb
inat-get-0.8.0.11 lib/inat/data/entity/vote.rb