Class: INatGet::Data::Model::Annotation

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

Sequel Associations collapse

Sequel Fields collapse

Structure collapse

Methods inherited from INatGet::Data::Model

endpoint, helper, manager, parser, updater

Instance Attribute Details

#observationINatGet::Data::Model::Observation?

Sequel many-to-one association.



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

many_to_one :observation, class: :'INatGet::Data::Model::Observation'

#observation_idInteger

Sequel data field

Returns:

  • (Integer)


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

set_dataset :annotations

#term_idInteger

Sequel data field

Returns:

  • (Integer)


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

set_dataset :annotations

#term_value_idInteger

Sequel data field

Returns:

  • (Integer)


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

set_dataset :annotations

#userINatGet::Data::Model::User?

Sequel many-to-one association.

Returns:



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

many_to_one :user, class: :'INatGet::Data::Model::User'

#user_idInteger

Sequel data field

Returns:

  • (Integer)


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

set_dataset :annotations

#uuidString?

Sequel data field

Returns:

  • (String, nil)


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

set_dataset :annotations

#vote_scoreInteger

Sequel data field

Returns:

  • (Integer)


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

set_dataset :annotations

Instance Method Details

#ownerINatGet::Data::Model::Observation



21
# File 'lib/inat-get/data/models/annotation.rb', line 21

def owner = self.observation