Class: Rawscsi::Query::Simple

Inherits:
Object
  • Object
show all
Defined in:
lib/rawscsi/query/simple.rb

Instance Method Summary collapse

Constructor Details

#initialize(query_string) ⇒ Simple

Returns a new instance of Simple.



6
7
8
# File 'lib/rawscsi/query/simple.rb', line 6

def initialize(query_string)
  @query_string = query_string
end

Instance Method Details

#buildObject



10
11
12
# File 'lib/rawscsi/query/simple.rb', line 10

def build
  "q=#{CGI.escape(@query_string.to_s)}"
end