Sha256: cec252a0cea5152d7cf5aec8a0dc24f9ad5ec20f001d23f0dd610a5fcd6a62f9

Contents?: true

Size: 431 Bytes

Versions: 9

Compression:

Stored size: 431 Bytes

Contents

module Enlight
  module Responses
    class SearchCourseExternalActivityLaunches < Enlight::Responses::Response
      include Enlight::Responses::Pageable

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

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
enlight-0.2.4 lib/enlight/responses/search_course_external_activity_launches.rb
enlight-0.2.3 lib/enlight/responses/search_course_external_activity_launches.rb
enlight-0.2.2 lib/enlight/responses/search_course_external_activity_launches.rb
enlight-0.2.1 lib/enlight/responses/search_course_external_activity_launches.rb
enlight-0.2.0 lib/enlight/responses/search_course_external_activity_launches.rb
enlight-0.1.4 lib/enlight/responses/search_course_external_activity_launches.rb
enlight-0.1.3 lib/enlight/responses/search_course_external_activity_launches.rb
enlight-0.1.2 lib/enlight/responses/search_course_external_activity_launches.rb
enlight-0.1.0 lib/enlight/responses/search_course_external_activity_launches.rb