Class: OnlyofficeTestrailWrapper::TestrailPlanEntry

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(params = {}) ⇒ TestrailPlanEntry



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

def initialize(params = {})
  @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.



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

def assigned_to
  @assigned_to
end

#case_idsObject

Returns the value of attribute case_ids.



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

def case_ids
  @case_ids
end

#include_allObject

Returns the value of attribute include_all.



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

def include_all
  @include_all
end

#nameObject

Returns the value of attribute name.



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

def name
  @name
end

#runsObject

Returns the value of attribute runs.



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

def runs
  @runs
end

#suite_idObject

Returns the value of attribute suite_id.



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

def suite_id
  @suite_id
end