Class: Allure::Link

Inherits:
JSONable show all
Defined in:
allure-ruby-commons/lib/allure_ruby_commons/model/link.rb

Overview

Allure model link object

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from JSONable

#==, #to_hash, #to_json

Constructor Details

#initialize(type, name, url) ⇒ Link

Returns a new instance of Link.



6
7
8
9
10
11
12
# File 'allure-ruby-commons/lib/allure_ruby_commons/model/link.rb', line 6

def initialize(type, name, url)
  super()

  @type = type
  @name = name
  @url = url
end

Instance Attribute Details

#nameObject

Returns the value of attribute name.



14
15
16
# File 'allure-ruby-commons/lib/allure_ruby_commons/model/link.rb', line 14

def name
  @name
end

#typeObject

Returns the value of attribute type.



14
15
16
# File 'allure-ruby-commons/lib/allure_ruby_commons/model/link.rb', line 14

def type
  @type
end

#urlObject

Returns the value of attribute url.



14
15
16
# File 'allure-ruby-commons/lib/allure_ruby_commons/model/link.rb', line 14

def url
  @url
end