Class: Rawscsi::Query::Simple
- Inherits:
-
Object
- Object
- Rawscsi::Query::Simple
- Defined in:
- lib/rawscsi/query/simple.rb
Instance Method Summary collapse
- #build ⇒ Object
-
#initialize(query_string) ⇒ Simple
constructor
A new instance of Simple.
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
#build ⇒ Object
10 11 12 |
# File 'lib/rawscsi/query/simple.rb', line 10 def build "q=#{CGI.escape(@query_string.to_s)}" end |