Method: Runcible::Resources::Unit#path

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

#path(type) ⇒ String

Generates the API path for Units

Parameters:

  • type (String)

    the unit type

Returns:

  • (String)

    the unit search path



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

def path(type)
  "content/units/#{type}/search/"
end