Sha256: 18f33ea2a0e70ed68068a6160f45a2c0623cded02e7a7dbf5bead2c556103d06

Contents?: true

Size: 643 Bytes

Versions: 3

Compression:

Stored size: 643 Bytes

Contents

# frozen_string_literal: true

require 'extra/uuid'

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

# require_relative 'observation'
# require_relative 'photo'

module INat::Entity
  autoload :Observation, 'inat/data/entity/observation'
  autoload :Photo,       'inat/data/entity/photo'
end

class INat::Entity::ObservationPhoto < INat::Data::Entity

  include INat::Entity

  table :observation_photos

  field :observation, type: Observation, index: true

  field :uuid, type: UUID, unique: true
  field :position, type: Integer, index: true
  field :photo, type: Photo, required: true

end

Version data entries

3 entries across 3 versions & 1 rubygems

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