Class: Flypbook::PhotoStore
- Inherits:
-
Object
- Object
- Flypbook::PhotoStore
- Defined in:
- lib/flypbook/photo_store.rb
Class Attribute Summary collapse
-
.screenshots ⇒ Object
readonly
Returns the value of attribute screenshots.
Class Method Summary collapse
Class Attribute Details
.screenshots ⇒ Object (readonly)
Returns the value of attribute screenshots.
5 6 7 |
# File 'lib/flypbook/photo_store.rb', line 5 def screenshots @screenshots end |
Class Method Details
.take_screenshot(identifier) ⇒ Object
7 8 9 10 11 |
# File 'lib/flypbook/photo_store.rb', line 7 def take_screenshot(identifier) filename = "#{identifier}-#{@screenshots.length + 1}.png" Capybara.current_session.save_screenshot filename @screenshots << filename end |