Class: Chord::Role

Inherits:
Base
  • Object
show all
Defined in:
lib/chord.rb

Instance Attribute Summary

Attributes inherited from Base

#attributes, #id

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Base

all, #base_path, #base_url, base_url, #delete, #expand!, find, #http_options, http_options, #initialize, #method_missing, #update, where

Constructor Details

This class inherits a constructor from Chord::Base

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class Chord::Base

Class Method Details

.base_pathObject



244
245
246
# File 'lib/chord.rb', line 244

def self.base_path
  'roles'
end

Instance Method Details

#usersObject



248
249
250
# File 'lib/chord.rb', line 248

def users
  attributes['users'].map{ |u| Chord::User.new(u['id'], u) }
end