Class: Rpruby::TestItem
- Inherits:
-
Object
- Object
- Rpruby::TestItem
- Defined in:
- lib/rpruby/models/test_item.rb
Overview
Represents a test item
Instance Attribute Summary collapse
-
#closed ⇒ Object
Returns the value of attribute closed.
-
#description ⇒ Object
readonly
Returns the value of attribute description.
-
#id ⇒ Object
Returns the value of attribute id.
-
#launch_id ⇒ Object
readonly
Returns the value of attribute launch_id.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#parameters ⇒ Object
readonly
Returns the value of attribute parameters.
-
#start_time ⇒ Object
readonly
Returns the value of attribute start_time.
-
#status ⇒ Object
readonly
Returns the value of attribute status.
-
#tags ⇒ Object
readonly
Returns the value of attribute tags.
-
#type ⇒ Object
readonly
Returns the value of attribute type.
-
#unique_id ⇒ Object
readonly
Returns the value of attribute unique_id.
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ TestItem
constructor
A new instance of TestItem.
Constructor Details
#initialize(options = {}) ⇒ TestItem
Returns a new instance of TestItem.
7 8 9 10 11 12 13 14 15 16 17 18 19 20 |
# File 'lib/rpruby/models/test_item.rb', line 7 def initialize( = {}) = .map { |k, v| [k.to_sym, v] }.to_h @launch_id = [:launch_id] @unique_id = [:unique_id] @name = [:name] @description = [:description] @type = [:type] @parameters = [:parameters] @tags = [:tags] @status = [:status] @start_time = [:start_time] @id = [:id] @closed = [:closed] end |
Instance Attribute Details
#closed ⇒ Object
Returns the value of attribute closed.
5 6 7 |
# File 'lib/rpruby/models/test_item.rb', line 5 def closed @closed end |
#description ⇒ Object (readonly)
Returns the value of attribute description.
4 5 6 |
# File 'lib/rpruby/models/test_item.rb', line 4 def description @description end |
#id ⇒ Object
Returns the value of attribute id.
5 6 7 |
# File 'lib/rpruby/models/test_item.rb', line 5 def id @id end |
#launch_id ⇒ Object (readonly)
Returns the value of attribute launch_id.
4 5 6 |
# File 'lib/rpruby/models/test_item.rb', line 4 def launch_id @launch_id end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
4 5 6 |
# File 'lib/rpruby/models/test_item.rb', line 4 def name @name end |
#parameters ⇒ Object (readonly)
Returns the value of attribute parameters.
4 5 6 |
# File 'lib/rpruby/models/test_item.rb', line 4 def parameters @parameters end |
#start_time ⇒ Object (readonly)
Returns the value of attribute start_time.
4 5 6 |
# File 'lib/rpruby/models/test_item.rb', line 4 def start_time @start_time end |
#status ⇒ Object (readonly)
Returns the value of attribute status.
4 5 6 |
# File 'lib/rpruby/models/test_item.rb', line 4 def status @status end |
#tags ⇒ Object (readonly)
Returns the value of attribute tags.
4 5 6 |
# File 'lib/rpruby/models/test_item.rb', line 4 def @tags end |
#type ⇒ Object (readonly)
Returns the value of attribute type.
4 5 6 |
# File 'lib/rpruby/models/test_item.rb', line 4 def type @type end |
#unique_id ⇒ Object (readonly)
Returns the value of attribute unique_id.
4 5 6 |
# File 'lib/rpruby/models/test_item.rb', line 4 def unique_id @unique_id end |