Class: Applitools::BatchInfo

Inherits:
Object
  • Object
show all
Defined in:
lib/eyes_selenium_ruby/eyes/batch_info.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#nameObject (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_atObject (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_hashObject



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