Class: Rpruby::TestItem

Inherits:
Object
  • Object
show all
Defined in:
lib/rpruby/models/test_item.rb

Overview

Represents a test item

Instance Attribute Summary collapse

Instance Method Summary collapse

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(options = {})
  options = options.map { |k, v| [k.to_sym, v] }.to_h
  @launch_id = options[:launch_id]
  @unique_id = options[:unique_id]
  @name = options[:name]
  @description = options[:description]
  @type = options[:type]
  @parameters = options[:parameters]
  @tags = options[:tags]
  @status = options[:status]
  @start_time = options[:start_time]
  @id = options[:id]
  @closed = options[:closed]
end

Instance Attribute Details

#closedObject

Returns the value of attribute closed.



5
6
7
# File 'lib/rpruby/models/test_item.rb', line 5

def closed
  @closed
end

#descriptionObject (readonly)

Returns the value of attribute description.



4
5
6
# File 'lib/rpruby/models/test_item.rb', line 4

def description
  @description
end

#idObject

Returns the value of attribute id.



5
6
7
# File 'lib/rpruby/models/test_item.rb', line 5

def id
  @id
end

#launch_idObject (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

#nameObject (readonly)

Returns the value of attribute name.



4
5
6
# File 'lib/rpruby/models/test_item.rb', line 4

def name
  @name
end

#parametersObject (readonly)

Returns the value of attribute parameters.



4
5
6
# File 'lib/rpruby/models/test_item.rb', line 4

def parameters
  @parameters
end

#start_timeObject (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

#statusObject (readonly)

Returns the value of attribute status.



4
5
6
# File 'lib/rpruby/models/test_item.rb', line 4

def status
  @status
end

#tagsObject (readonly)

Returns the value of attribute tags.



4
5
6
# File 'lib/rpruby/models/test_item.rb', line 4

def tags
  @tags
end

#typeObject (readonly)

Returns the value of attribute type.



4
5
6
# File 'lib/rpruby/models/test_item.rb', line 4

def type
  @type
end

#unique_idObject (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