Class: INatGet::Data::Helper::Field::Identified Private
- Inherits:
-
Scalar
- Object
- INatGet::Data::Helper::Field
- Scalar
- INatGet::Data::Helper::Field::Identified
- Defined in:
- lib/inat-get/data/helpers/defs/identified.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
-
#initialize(helper, key) ⇒ Identified
constructor
private
A new instance of Identified.
- #to_sequel(value) ⇒ Object private
Methods inherited from Scalar
Methods inherited from INatGet::Data::Helper::Field
Constructor Details
#initialize(helper, key) ⇒ Identified
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.
Returns a new instance of Identified.
7 8 9 |
# File 'lib/inat-get/data/helpers/defs/identified.rb', line 7 def initialize helper, key super helper, key, Boolean end |
Instance Method Details
#to_sequel(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.
11 12 13 14 15 16 17 |
# File 'lib/inat-get/data/helpers/defs/identified.rb', line 11 def to_sequel value if value Sequel.~(taxon_id: nil) else { taxon_id: nil } end end |