Sha256: 0659429424765f6e82194683a1e934ed06a2ca13039f4b618f09378b7e20f40c

Contents?: true

Size: 339 Bytes

Versions: 8

Compression:

Stored size: 339 Bytes

Contents

module SearchKit
  module Models
    class Search
      include Virtus.model

      attribute :time
      attribute :results
      attribute :documents, Models::Documents[Models::Document]

      def initialize(search_data = {})
        attributes = search_data.fetch(:attributes, {})
        super attributes
      end

    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
search-kit-0.0.10 lib/search_kit/models/search.rb
search-kit-0.0.9 lib/search_kit/models/search.rb
search-kit-0.0.8 lib/search_kit/models/search.rb
search-kit-0.0.7 lib/search_kit/models/search.rb
search-kit-0.0.6 lib/search_kit/models/search.rb
search-kit-0.0.5 lib/search_kit/models/search.rb
search-kit-0.0.4 lib/search_kit/models/search.rb
search-kit-0.0.3 lib/search_kit/models/search.rb