Class: Puavo::Client::Group

Inherits:
Model
  • Object
show all
Defined in:
lib/puavo/client/group.rb

Instance Method Summary collapse

Methods inherited from Model

#api, #initialize, #method_missing, model_path, parse

Constructor Details

This class inherits a constructor from Puavo::Client::Model

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class Puavo::Client::Model

Instance Method Details

#membersObject



6
7
8
9
10
11
# File 'lib/puavo/client/group.rb', line 6

def members
  User.parse( api,
              api.rest( api.url_prefix + 
                        Group.model_path(:school_id => self.school_id) +
                        "/#{self.puavo_id}/members" ).parsed_response )
end