Method: Runcible::Resources::Repository.path

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

.path(id = nil) ⇒ String

Generates the API path for Repositories

Parameters:

  • id (String) (defaults to: nil)

    the id of the repository

Returns:

  • (String)

    the repository path, may contain the id if passed



34
35
36
# File 'lib/runcible/resources/repository.rb', line 34

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