Class: INatGet::Data::Parser::Project Private

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



42
43
44
45
46
# File 'lib/inat-get/data/parsers/project.rb', line 42

def fake id
  self.model.create id: id, slug: "fake-#{ id }", title: "Fake \##{ id }", description: "Fake project \##{ id }", project_type: '',
                    created: Time::now, updated: Time::now, cached: Time::now, 
                    is_umbrella: false, is_collection: false, members_only: false, user: INatGet::Data::Manager::Users.instance.get(0).first
end