Sha256: b02a8b649ad4035c4789c7ec62b058b9111907581a1118c66019011bd69c381e

Contents?: true

Size: 266 Bytes

Versions: 9

Compression:

Stored size: 266 Bytes

Contents

module Enlight
  module Responses
    module CourseAttributable
      attr_accessor :course

      def course=(value)
        if value
          @course = Enlight::Models::Course.new(value)
        else
          @course = 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/course_attributable.rb
enlight-0.2.3 lib/enlight/responses/course_attributable.rb
enlight-0.2.2 lib/enlight/responses/course_attributable.rb
enlight-0.2.1 lib/enlight/responses/course_attributable.rb
enlight-0.2.0 lib/enlight/responses/course_attributable.rb
enlight-0.1.4 lib/enlight/responses/course_attributable.rb
enlight-0.1.3 lib/enlight/responses/course_attributable.rb
enlight-0.1.2 lib/enlight/responses/course_attributable.rb
enlight-0.1.0 lib/enlight/responses/course_attributable.rb