lib/katapaty/party.rb in katapaty-0.4.0 vs lib/katapaty/party.rb in katapaty-0.4.1
- old
+ new
@@ -40,8 +40,13 @@
content_type: 'json' )
raise JsonResponseError.new response if response.has_key? 'code'
raise ResponseError.new response['error'] if response.has_key? 'error'
response['result']
end
+
+ def method_missing(name, *args)
+ args = args.nil? ? {} : args.first
+ request(name, args)
+ end
end
end
end