Class: LessonlyApi::Assignments

Inherits:
Request show all
Defined in:
lib/lessonly_api/assignments.rb

Class Method Summary collapse

Methods inherited from Request

client

Methods inherited from ResourceType::Base

#attributes, dump, fields, from_json, #initialize, load

Constructor Details

This class inherits a constructor from LessonlyApi::ResourceType::Base

Class Method Details

.list(page: 1, per_page: 50) ⇒ Object



4
5
6
7
# File 'lib/lessonly_api/assignments.rb', line 4

def list(page: 1, per_page: 50)
  raw_result = send_get('/assignments', page: page, per_page: per_page)
  LessonlyApi::ResourceType::Assignments.new(raw_result)
end