Class: INatGet::Data::Helper::Field::Licenses Private
- Inherits:
-
Has
- Object
- INatGet::Data::Helper::Field
- Scalar
- Has
- INatGet::Data::Helper::Field::Licenses
- Defined in:
- lib/inat-get/data/helpers/defs/licenses.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, association) ⇒ Licenses
constructor
private
A new instance of Licenses.
- #to_sequel(value) ⇒ Object private
Methods inherited from Scalar
Methods inherited from INatGet::Data::Helper::Field
Constructor Details
#initialize(helper, key, association) ⇒ Licenses
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 Licenses.
7 8 9 10 |
# File 'lib/inat-get/data/helpers/defs/licenses.rb', line 7 def initialize helper, key, association super helper, key, association @check = lambda { |v| String === v || Enumerable === v } 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.
12 13 14 15 |
# File 'lib/inat-get/data/helpers/defs/licenses.rb', line 12 def to_sequel value @extra = { license: value } super value end |