Class: Stratagem::Snapshot
Instance Attribute Summary collapse
-
#model ⇒ Object
readonly
Returns the value of attribute model.
-
#project_name ⇒ Object
readonly
Returns the value of attribute project_name.
-
#timestamp ⇒ Object
readonly
Returns the value of attribute timestamp.
Class Method Summary collapse
Instance Attribute Details
#model ⇒ Object (readonly)
Returns the value of attribute model.
3 4 5 |
# File 'lib/stratagem/snapshot.rb', line 3 def model @model end |
#project_name ⇒ Object (readonly)
Returns the value of attribute project_name.
3 4 5 |
# File 'lib/stratagem/snapshot.rb', line 3 def project_name @project_name end |
#timestamp ⇒ Object (readonly)
Returns the value of attribute timestamp.
3 4 5 |
# File 'lib/stratagem/snapshot.rb', line 3 def @timestamp end |
Class Method Details
.create(project_name) ⇒ Object
5 6 7 8 9 10 11 12 13 14 15 16 |
# File 'lib/stratagem/snapshot.rb', line 5 def self.create(project_name) # Build the meta-model logger.phase('modeling_application') model = Stratagem::ModelBuilder.new.run # Crawl site logger.phase('traversing_site') model.crawler = Stratagem::SiteCrawler.new(model).run # Return the snapshot self.new(project_name, Time.now, model) end |