Method: Runcible::Resources::User.path

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

.path(login = nil) ⇒ String

Generates the API path for Users

Parameters:

  • (defaults to: nil)

    the user’s login

Returns:

  • the user path, may contain the login if passed



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

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