Class: Applitools::Base::BatchInfo
- Inherits:
-
Object
- Object
- Applitools::Base::BatchInfo
- Defined in:
- lib/applitools/base/batch_info.rb
Instance Method Summary collapse
-
#initialize(name = nil, started_at = Time.now) ⇒ BatchInfo
constructor
A new instance of BatchInfo.
- #to_hash ⇒ Object
Constructor Details
#initialize(name = nil, started_at = Time.now) ⇒ BatchInfo
Returns a new instance of BatchInfo.
5 6 7 8 9 |
# File 'lib/applitools/base/batch_info.rb', line 5 def initialize(name = nil, started_at = Time.now) @name = name @started_at = started_at @id = SecureRandom.uuid end |
Instance Method Details
#to_hash ⇒ Object
11 12 13 14 15 16 17 |
# File 'lib/applitools/base/batch_info.rb', line 11 def to_hash { id: @id, name: @name, started_at: @started_at.iso8601 } end |