Class: INatGet::Data::Parser::Taxon Private

Inherits:
INatGet::Data::Parser show all
Includes:
Singleton
Defined in:
lib/inat-get/data/parsers/taxon.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

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.



27
28
29
# File 'lib/inat-get/data/parsers/taxon.rb', line 27

def fake id
  self.model.create id: id, name: "Fake #{ id }", is_active: false, cached: Time::now
end