module Sistrix::Base
Public Instance Methods
base_uri()
click to toggle source
# File lib/sistrix/base.rb, line 19 def base_uri 'http://' + ::Sistrix::SERVICE_HOST + '/' + method_name end
fetch(options = {})
click to toggle source
# File lib/sistrix/base.rb, line 6 def fetch(options = {}) @options.merge!(options) response = RestClient.get(base_uri, { :params => @options }) Nokogiri::XML(response.to_s) end
method_name()
click to toggle source
# File lib/sistrix/base.rb, line 13 def method_name # derive the method name from the class name # self.class.to_s.downcase.sub(/^.+?::/, '').gsub(/::/, '.') end