Class: RTrail::Suite

Inherits:
Entity show all
Defined in:
lib/rtrail/suite.rb

Instance Attribute Summary

Attributes inherited from Entity

#data

Instance Method Summary collapse

Methods inherited from Entity

#add_entity, basename, client, #client, client=, #fetch, #get_entities, #initialize, #method_missing

Methods included from Helpers

#is_id?, #path_with_params

Constructor Details

This class inherits a constructor from RTrail::Entity

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class RTrail::Entity

Instance Method Details

#cases(section_id = nil) ⇒ Object



15
16
17
18
19
20
21
22
# File 'lib/rtrail/suite.rb', line 15

def cases(section_id=nil)
  return get_entities(
    Case,
    data.project_id,
    :suite_id => data.id,
    :section_id => section_id
  )
end

#sectionsObject



7
8
9
10
11
12
13
# File 'lib/rtrail/suite.rb', line 7

def sections
  return get_entities(
    Section,
    data.project_id,
    :suite_id => data.id
  )
end