Class: Applitools::BatchInfo
- Inherits:
-
Object
- Object
- Applitools::BatchInfo
- Defined in:
- lib/eyes_selenium/eyes/batch_info.rb
Instance Attribute Summary collapse
-
#id ⇒ Object
Returns the value of attribute id.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#started_at ⇒ Object
readonly
Returns the value of attribute started_at.
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.
6 7 8 9 10 |
# File 'lib/eyes_selenium/eyes/batch_info.rb', line 6 def initialize(name=nil, started_at = Time.now) @name = name @started_at = started_at @id = SecureRandom.uuid end |
Instance Attribute Details
#id ⇒ Object
Returns the value of attribute id.
4 5 6 |
# File 'lib/eyes_selenium/eyes/batch_info.rb', line 4 def id @id end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
5 6 7 |
# File 'lib/eyes_selenium/eyes/batch_info.rb', line 5 def name @name end |
#started_at ⇒ Object (readonly)
Returns the value of attribute started_at.
5 6 7 |
# File 'lib/eyes_selenium/eyes/batch_info.rb', line 5 def started_at @started_at end |
Instance Method Details
#to_hash ⇒ Object
12 13 14 15 16 17 18 |
# File 'lib/eyes_selenium/eyes/batch_info.rb', line 12 def to_hash { name: name, id: id, startedAt: started_at.iso8601 } end |