Class: Quarantine::Test
- Inherits:
-
Object
- Object
- Quarantine::Test
- Defined in:
- lib/quarantine/test.rb
Instance Attribute Summary collapse
-
#build_number ⇒ Object
Returns the value of attribute build_number.
-
#full_description ⇒ Object
Returns the value of attribute full_description.
-
#id ⇒ Object
Returns the value of attribute id.
-
#location ⇒ Object
Returns the value of attribute location.
Instance Method Summary collapse
-
#initialize(id, full_description, location, build_number) ⇒ Test
constructor
A new instance of Test.
- #to_hash ⇒ Object
Constructor Details
#initialize(id, full_description, location, build_number) ⇒ Test
Returns a new instance of Test.
8 9 10 11 12 13 |
# File 'lib/quarantine/test.rb', line 8 def initialize(id, full_description, location, build_number) @id = id @full_description = full_description @location = location @build_number = build_number end |
Instance Attribute Details
#build_number ⇒ Object
Returns the value of attribute build_number.
6 7 8 |
# File 'lib/quarantine/test.rb', line 6 def build_number @build_number end |
#full_description ⇒ Object
Returns the value of attribute full_description.
4 5 6 |
# File 'lib/quarantine/test.rb', line 4 def full_description @full_description end |
#id ⇒ Object
Returns the value of attribute id.
3 4 5 |
# File 'lib/quarantine/test.rb', line 3 def id @id end |
#location ⇒ Object
Returns the value of attribute location.
5 6 7 |
# File 'lib/quarantine/test.rb', line 5 def location @location end |
Instance Method Details
#to_hash ⇒ Object
15 16 17 18 19 20 21 22 |
# File 'lib/quarantine/test.rb', line 15 def to_hash { id: id, full_description: full_description, location: location, build_number: build_number } end |