Method: Runcible::Resources::TaskGroup.path

Defined in:
lib/runcible/resources/task_group.rb

.path(id = nil) ⇒ String

Generates the API path for Tasks

Parameters:

  • id (String) (defaults to: nil)

    the id of the task

Returns:

  • (String)

    the task path, may contain the id if passed



9
10
11
# File 'lib/runcible/resources/task_group.rb', line 9

def self.path(id = nil)
  id.nil? ? 'task_groups/' : "task_groups/#{id}/"
end