Class: OnlyofficeTestrailWrapper::TestrailPlanEntry

Inherits:
TestrailApiObject show all
Defined in:
lib/onlyoffice_testrail_wrapper/testrail_plan_entry.rb

Overview

Class for working with testrail plan entry

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from TestrailApiObject

#init_from_hash, #name_id_pairs

Constructor Details

#initialize(params = {}) ⇒ TestrailPlanEntry

Returns a new instance of TestrailPlanEntry.



8
9
10
11
12
13
14
15
16
# File 'lib/onlyoffice_testrail_wrapper/testrail_plan_entry.rb', line 8

def initialize(params = {})
  super()
  @suite_id = params.fetch(:suite_id, nil)
  @name = params.fetch(:name, '')
  @include_all = params.fetch(:include_all, true)
  @case_ids = params.fetch(:case_ids, [])
  @assigned_to = params.fetch(:assigned_to, nil)
  @runs = params.fetch(:runs, [])
end

Instance Attribute Details

#assigned_toObject

Returns the value of attribute assigned_to.



6
7
8
# File 'lib/onlyoffice_testrail_wrapper/testrail_plan_entry.rb', line 6

def assigned_to
  @assigned_to
end

#case_idsObject

Returns the value of attribute case_ids.



6
7
8
# File 'lib/onlyoffice_testrail_wrapper/testrail_plan_entry.rb', line 6

def case_ids
  @case_ids
end

#include_allObject

Returns the value of attribute include_all.



6
7
8
# File 'lib/onlyoffice_testrail_wrapper/testrail_plan_entry.rb', line 6

def include_all
  @include_all
end

#nameObject

Returns the value of attribute name.



6
7
8
# File 'lib/onlyoffice_testrail_wrapper/testrail_plan_entry.rb', line 6

def name
  @name
end

#runsObject

Returns the value of attribute runs.



6
7
8
# File 'lib/onlyoffice_testrail_wrapper/testrail_plan_entry.rb', line 6

def runs
  @runs
end

#suite_idObject

Returns the value of attribute suite_id.



6
7
8
# File 'lib/onlyoffice_testrail_wrapper/testrail_plan_entry.rb', line 6

def suite_id
  @suite_id
end