Class: Allure::GlobalAttachment

Inherits:
Attachment show all
Defined in:
lib/allure_ruby_commons/model/global_attachment.rb

Overview

Allure model global attachment object

Instance Attribute Summary collapse

Attributes inherited from Attachment

#name, #source, #type

Instance Method Summary collapse

Methods inherited from JSONable

#==, #to_hash, #to_json

Constructor Details

#initialize(timestamp:, **options) ⇒ GlobalAttachment

Returns a new instance of GlobalAttachment.

Parameters:

  • timestamp (Number)
  • options (Hash)

Options Hash (**options):

  • :name (String) —

    attachment name

  • :type (String) —

    attachment type, ContentType

  • :source (String) —

    attachment file name



11
12
13
14
15
# File 'lib/allure_ruby_commons/model/global_attachment.rb', line 11

def initialize(timestamp:, **options)
  super(**options)

  @timestamp = timestamp
end

Instance Attribute Details

#timestamp ⇒ Object

Returns the value of attribute timestamp.



17
18
19
# File 'lib/allure_ruby_commons/model/global_attachment.rb', line 17

def timestamp
  @timestamp
end