Class: INatGet::Data::Model::Sound

Inherits:
INatGet::Data::Model show all
Includes:
Identified
Defined in:
lib/inat-get/data/models/sound.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

#idInteger

Sequel data field

Returns:

  • (Integer)


11
# File 'lib/inat-get/data/models/sound.rb', line 11

set_dataset :sounds

#licenseString?

Sequel data field

Returns:

  • (String, nil)


11
# File 'lib/inat-get/data/models/sound.rb', line 11

set_dataset :sounds

#observationsSequel::Dataset, Array<INatGet::Data::Model::Observation>

Sequel many-to-many association.

Returns:



13
# File 'lib/inat-get/data/models/sound.rb', line 13

many_to_many :observations, class: :'INatGet::Data::Model::Observation', join_table: :observation_sounds, left_key: :sound_id, right_key: :observation_id

#urlString

Sequel data field

Returns:

  • (String)


11
# File 'lib/inat-get/data/models/sound.rb', line 11

set_dataset :sounds