Class: ActivePivot::Importer

Inherits:
Struct
  • Object
show all
Defined in:
lib/active_pivot/importer.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#paramsObject

Returns the value of attribute params

Returns:

  • (Object)

    the current value of 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) ⇒ Object



3
4
5
# File 'lib/active_pivot/importer.rb', line 3

def self.run(updated_after = 5.minutes.ago)
  self.new({updated_after: updated_after}).run
end

Instance Method Details

#runObject



7
8
9
10
11
12
13
14
15
16
# 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
  puts "Importing Activity - may take up to 10 minutes"
  import_activities
end