class Backend
Ruby Live Interface to the Picky search engine.
Attributes
host[R]
path[R]
port[R]
Public Class Methods
new(options = {})
click to toggle source
# File lib/picky-live/backend.rb, line 9 def initialize options = {} @host = options[:host] || 'localhost' @port = options[:port] || 8080 @path = options[:path] || '/admin' end
Public Instance Methods
get(params = {})
click to toggle source
# File lib/picky-live/backend.rb, line 15 def get params = {} query_params = params.to_query query_params = "?#{query_params}" unless query_params.empty? Net::HTTP.get self.host, "#{self.path}#{query_params}", self.port end