Class: Applitools::Base::BatchInfo

Inherits:
Object
  • Object
show all
Defined in:
lib/applitools/base/batch_info.rb

Instance Method Summary collapse

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_hashObject



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