Class: ActivePivot::Importer
- Inherits:
-
Struct
- Object
- Struct
- ActivePivot::Importer
- Defined in:
- lib/active_pivot/importer.rb
Instance Attribute Summary collapse
-
#activity_flag ⇒ Object
Returns the value of attribute activity_flag.
-
#params ⇒ Object
Returns the value of attribute params.
Class Method Summary collapse
Instance Method Summary collapse
Instance Attribute Details
#activity_flag ⇒ Object
Returns the value of attribute activity_flag
2 3 4 |
# File 'lib/active_pivot/importer.rb', line 2 def activity_flag @activity_flag end |
#params ⇒ Object
Returns the value of attribute params
2 3 4 |
# File 'lib/active_pivot/importer.rb', line 2 def params @params end |
Class Method Details
.run(updated_after = 5.minutes.ago, activity_flag) ⇒ Object
3 4 5 |
# File 'lib/active_pivot/importer.rb', line 3 def self.run(updated_after = 5.minutes.ago, activity_flag) self.new({updated_after: updated_after}, activity_flag).run end |
Instance Method Details
#run ⇒ Object
7 8 9 10 11 12 13 14 15 16 17 18 |
# File 'lib/active_pivot/importer.rb', line 7 def run puts "Importing Projects" import_projects puts "Importing Epics" import_epics puts "Importing Stories" import_stories unless activity_flag == 'false' puts "Importing Activity - may take up to 10 minutes" import_activities end end |