Sha256: 9d20e204d8e1764b77cac4fb6f874d841a5659f31e02b3bbff1120046a22e7a5

Contents?: true

Size: 260 Bytes

Versions: 9

Compression:

Stored size: 260 Bytes

Contents

module Enlight
  module Responses
    module ClassAttributable
      attr_accessor :class

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