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