Class: INatGet::Data::Parser::Observation Private
- Inherits:
-
INatGet::Data::Parser
- Object
- INatGet::Data::Parser
- INatGet::Data::Parser::Observation
- Includes:
- Singleton
- Defined in:
- lib/inat-get/data/parsers/observation.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 Method Summary collapse
- #fake(id) ⇒ Object private
Methods inherited from INatGet::Data::Parser
#entry!, #manager, #model, #parse!, part, parts, #parts
Methods included from System::Context
#check_shutdown!, check_shutdown!, #shutdown?, shutdown?
Instance Method Details
#fake(id) ⇒ 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.
60 61 62 63 64 |
# File 'lib/inat-get/data/parsers/observation.rb', line 60 def fake id now = Time::now self.model.create id: id, created: now, observed: now, updated: now, cached: now, quality_grade: 'fake', user: INatGet::Data::Manager::Users::instance.get(0), created_year: now.year, created_month: now.month, created_week: now.to_date.cweek, created_day: now.day, created_hour: now.hour end |