Sha256: e7f38cdcd84b48c1bab35f71d4b1dfa010a4cf2cfadf941d6d544d5fb7f69d15

Contents?: true

Size: 667 Bytes

Versions: 9

Compression:

Stored size: 667 Bytes

Contents

module Enlight
  module Models
    class CourseCatalogSearchHistory < Enlight::Models::Model
      attr_accessor :user_id
      attr_accessor :user_external_id
      attr_accessor :first_name
      attr_accessor :last_name
      attr_accessor :organization_id
      attr_accessor :search
      attr_accessor :text_filter
      attr_accessor :page_index
      attr_accessor :club_ids
      attr_accessor :tags
      attr_accessor :num_results

      def tags=(value)
        if value.instance_of?(Array) && value.any?
          @tags = []
          value.each {|v| 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_catalog_search_history.rb
enlight-0.2.3 lib/enlight/models/course_catalog_search_history.rb
enlight-0.2.2 lib/enlight/models/course_catalog_search_history.rb
enlight-0.2.1 lib/enlight/models/course_catalog_search_history.rb
enlight-0.2.0 lib/enlight/models/course_catalog_search_history.rb
enlight-0.1.4 lib/enlight/models/course_catalog_search_history.rb
enlight-0.1.3 lib/enlight/models/course_catalog_search_history.rb
enlight-0.1.2 lib/enlight/models/course_catalog_search_history.rb
enlight-0.1.0 lib/enlight/models/course_catalog_search_history.rb