Sha256: 8b5fad38cd247941d314efb343aebfd7ee6495efd1de7fcad3bf9ac7fe39846c

Contents?: true

Size: 565 Bytes

Versions: 2

Compression:

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

autoload :Observation, 'inat/data/entity/observation'
autoload :Photo,       'inat/data/entity/photo'

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

2 entries across 2 versions & 1 rubygems

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