Module: People::Api::V1::Roles
- Included in:
- People::Api::V1
- Defined in:
- lib/people/api/v1/roles.rb
Instance Method Summary collapse
-
#role(rid) ⇒ Object
(also: #get_role)
alias_method :get_roles, :roles.
- #roles ⇒ Object
Instance Method Details
#role(rid) ⇒ Object Also known as: get_role
alias_method :get_roles, :roles
12 13 14 15 |
# File 'lib/people/api/v1/roles.rb', line 12 def role(rid) path = "api/v1/roles/#{rid}" get(path) end |
#roles ⇒ Object
5 6 7 8 |
# File 'lib/people/api/v1/roles.rb', line 5 def roles path = 'api/v1/roles/' get(path) end |