Class: INatGet::Data::Helper::Field::Models Private
- Inherits:
-
Set
- Object
- INatGet::Data::Helper::Field
- Set
- INatGet::Data::Helper::Field::Models
- Defined in:
- lib/inat-get/data/helpers/defs/models.rb
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
Instance Attribute Summary
Attributes inherited from INatGet::Data::Helper::Field
Instance Method Summary collapse
- #to_api(value) ⇒ Object private
Methods inherited from Set
#initialize, #prepare, #valid?
Methods inherited from INatGet::Data::Helper::Field
#initialize, #prepare, #to_sequel, #valid?
Constructor Details
This class inherits a constructor from INatGet::Data::Helper::Field::Set
Instance Method Details
#to_api(value) ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
7 8 9 |
# File 'lib/inat-get/data/helpers/defs/models.rb', line 7 def to_api value { "#{ @key }_id".to_sym => value.map(&:id).to_set } end |