lib/spyse/api.rb in spysex-0.1.0 vs lib/spyse/api.rb in spysex-0.2.0
- old
+ new
@@ -24,7 +24,21 @@
end
def ip
@ip ||= Client::IP.new(@api_key)
end
+
+ def get(path, params = {})
+ base._get(path, params) { |json| json }
+ end
+
+ def post(path, params = {})
+ base._post(path, params) { |json| json }
+ end
+
+ private
+
+ def base
+ @base ||= Client::Base.new(@api_key)
+ end
end
end