Class: Enlight::Responses::SearchCourseFeedback

Inherits:
Response
  • Object
show all
Includes:
Pageable
Defined in:
lib/enlight/responses/search_course_feedback.rb

Instance Attribute Summary

Attributes included from Pageable

#results, #total_count, #total_pages

Attributes inherited from Response

#error, #status

Instance Method Summary collapse

Methods inherited from Response

#initialize

Constructor Details

This class inherits a constructor from Enlight::Responses::Response

Instance Method Details

#results=(value) ⇒ Object



6
7
8
9
10
11
12
13
# File 'lib/enlight/responses/search_course_feedback.rb', line 6

def results=(value)
  if value.instance_of?(Array) && value.any?
    @results = []
    value.each {|v| @results.append(Enlight::Models::CourseFeedback.new(v))}
  else
    @results = nil
  end
end