Class: Poltergeist::ScreenshotOverview::ScreenshotGroup
- Inherits:
-
Object
- Object
- Poltergeist::ScreenshotOverview::ScreenshotGroup
- Defined in:
- lib/poltergeist/screenshot_overview/manager.rb
Instance Attribute Summary collapse
-
#file_name ⇒ Object
Returns the value of attribute file_name.
-
#screenshots ⇒ Object
Returns the value of attribute screenshots.
Instance Method Summary collapse
-
#initialize(file, screenshots) ⇒ ScreenshotGroup
constructor
A new instance of ScreenshotGroup.
- #to_id ⇒ Object
Constructor Details
#initialize(file, screenshots) ⇒ ScreenshotGroup
Returns a new instance of ScreenshotGroup.
7 8 9 10 |
# File 'lib/poltergeist/screenshot_overview/manager.rb', line 7 def initialize(file,screenshots) @file_name = file @screenshots = screenshots end |
Instance Attribute Details
#file_name ⇒ Object
Returns the value of attribute file_name.
5 6 7 |
# File 'lib/poltergeist/screenshot_overview/manager.rb', line 5 def file_name @file_name end |
#screenshots ⇒ Object
Returns the value of attribute screenshots.
5 6 7 |
# File 'lib/poltergeist/screenshot_overview/manager.rb', line 5 def screenshots @screenshots end |
Instance Method Details
#to_id ⇒ Object
12 13 14 |
# File 'lib/poltergeist/screenshot_overview/manager.rb', line 12 def to_id file_name.gsub(/\W+/, "-").gsub(/^-/, "") end |