Sha256: 8f8d1d54158f97e2ba7af97514de2bd0e041c106951df7d1f0562414b3051a53

Contents?: true

Size: 490 Bytes

Versions: 6

Compression:

Stored size: 490 Bytes

Contents

module Rapa
  module Queries
    class SearchItemsQuery < BaseQuery
      SEARCH_INDEX_DEFAULT = "All"
      OPERATION = "ItemSearch"

      property :Keywords
      property :SearchIndex

      # @return [Array<String>]
      def Keywords
        options[:keywords].join(",")
      end

      # @note Override
      def Operation
        OPERATION
      end

      # @return [String]
      def SearchIndex
        options[:search_index] || SEARCH_INDEX_DEFAULT
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
rapa-0.4.1 lib/rapa/queries/search_items_query.rb
rapa-0.4.0 lib/rapa/queries/search_items_query.rb
rapa-0.3.3 lib/rapa/queries/search_items_query.rb
rapa-0.3.2 lib/rapa/queries/search_items_query.rb
rapa-0.3.1 lib/rapa/queries/search_items_query.rb
rapa-0.3.0 lib/rapa/queries/search_items_query.rb