Class: INatGet::Data::Helper::Field::Project Private

Inherits:
Models show all
Defined in:
lib/inat-get/data/helpers/defs/project.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

#helper, #key

Instance Method Summary collapse

Methods inherited from Models

#to_api

Methods inherited from Set

#prepare, #valid?

Methods inherited from INatGet::Data::Helper::Field

#prepare, #to_api, #valid?

Constructor Details

#initialize(helper, key) ⇒ Project

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 Project.



8
9
10
# File 'lib/inat-get/data/helpers/defs/project.rb', line 8

def initialize helper, key
  super helper, key, INatGet::Data::Model::Project
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/project.rb', line 12

def to_sequel value
  value = [ value ] unless value.is_a?(Enumerable)
  Sequel.|( *value.map(&:to_sequel) )
end