Method: Runcible::Resources::RepositoryGroup.path

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

.path(id = nil) ⇒ String

Generates the API path for Repository Groups

Parameters:

  • id (String) (defaults to: nil)

    the ID of the Repository group

Returns:

  • (String)

    the Repository group path, may contain the id if passed



35
36
37
38
# File 'lib/runcible/resources/repository_group.rb', line 35

def self.path(id=nil)
  groups = "repo_groups/"
  id.nil? ? groups : groups + "#{id}/"
end