Class: Assembly::YearGroup

Inherits:
ApiModel show all
Includes:
Actions::List, Actions::Read
Defined in:
lib/assembly/models/year_group.rb

Instance Attribute Summary

Attributes inherited from Model

#client, #id

Instance Method Summary collapse

Methods included from Actions::List

included

Methods included from Actions::Read

included

Methods inherited from ApiModel

#path, path

Methods inherited from Model

#[], #[]=, #as_json, class_name, construct_from, #dirty?, #dirty_params, #each, #initialize, #keys, #merge, #to_hash, #to_json, #update_from, #values

Constructor Details

This class inherits a constructor from Assembly::Model

Instance Method Details

#students(params = {}) ⇒ Object



6
7
8
9
# File 'lib/assembly/models/year_group.rb', line 6

def students(params={})
  response = client.get(path + '/students', params)
  Util.build(response, client)
end