Sha256: 1ffeef6c8c78b2f92528579d59750e32dee2b6ac5a206ec13eb42081c8874d83

Contents?: true

Size: 372 Bytes

Versions: 9

Compression:

Stored size: 372 Bytes

Contents

module Enlight
  module Models
    class CourseTagGroup < Enlight::Models::Model
      attr_accessor :name
      attr_accessor :tags

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

Version data entries

9 entries across 9 versions & 1 rubygems

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