Class: Allure::Attachment
- Defined in:
- lib/allure_ruby_commons/model/attachment.rb
Overview
Allure model attachment object
Instance Attribute Summary collapse
-
#name ⇒ Object
Returns the value of attribute name.
-
#source ⇒ Object
Returns the value of attribute source.
-
#type ⇒ Object
Returns the value of attribute type.
Instance Method Summary collapse
-
#initialize(name:, type:, source:) ⇒ Attachment
constructor
A new instance of Attachment.
Methods inherited from JSONable
Constructor Details
#initialize(name:, type:, source:) ⇒ Attachment
Returns a new instance of Attachment.
9 10 11 12 13 14 15 |
# File 'lib/allure_ruby_commons/model/attachment.rb', line 9 def initialize(name:, type:, source:) super() @name = name @type = type @source = source end |
Instance Attribute Details
#name ⇒ Object
Returns the value of attribute name.
17 18 19 |
# File 'lib/allure_ruby_commons/model/attachment.rb', line 17 def name @name end |
#source ⇒ Object
Returns the value of attribute source.
17 18 19 |
# File 'lib/allure_ruby_commons/model/attachment.rb', line 17 def source @source end |
#type ⇒ Object
Returns the value of attribute type.
17 18 19 |
# File 'lib/allure_ruby_commons/model/attachment.rb', line 17 def type @type end |