Class: INatGet::Data::Model::Photo

Inherits:
INatGet::Data::Model show all
Includes:
Identified
Defined in:
lib/inat-get/data/models/photo.rb

Sequel Fields collapse

Sequel Associations collapse

Method Summary

Methods included from Identified

#eql?, #hash

Methods inherited from INatGet::Data::Model

endpoint, helper, manager, parser, updater

Instance Attribute Details

#id ⇒ Integer

Sequel data field

Returns:

  • (Integer)


14
# File 'lib/inat-get/data/models/photo.rb', line 14

set_dataset :photos

#license ⇒ String?

Sequel data field

Returns:

  • (String, nil)


14
# File 'lib/inat-get/data/models/photo.rb', line 14

set_dataset :photos

#observations ⇒ Sequel::Dataset, Array<INatGet::Data::Model::Observation>

Sequel many-to-many association.

Returns:



16
# File 'lib/inat-get/data/models/photo.rb', line 16

many_to_many :observations, class: :'INatGet::Data::Model::Observation', join_table: :observation_photos, left_key: :photo_id, right_key: :observation_id

#url ⇒ String

Sequel data field

Returns:

  • (String)


14
# File 'lib/inat-get/data/models/photo.rb', line 14

set_dataset :photos