Sha256: 7450266996f44523eb44c34face8b3327c645af6a664f26b96418d6cde7efc51

Contents?: true

Size: 461 Bytes

Versions: 4

Compression:

Stored size: 461 Bytes

Contents

module Kooaba

  class Query
    attr_accessor :image_path
    attr_accessor :max_results
    attr_accessor :user_data

    def initialize(options = {})
      if options[:image_path] == nil || options[:image_path] == ""
        raise ArgumentError, "you need to provide the path of the query image"
      end

      @image_path  = options[:image_path]
      @max_results = options[:max_results] || 10
      @user_data   = options[:user_data]
    end
  end

end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
kooaba-0.0.7 lib/kooaba/query.rb
kooaba-0.0.6 lib/kooaba/query.rb
kooaba-0.0.5 lib/kooaba/query.rb
kooaba-0.0.4 lib/kooaba/query.rb