lib/finapps/rest/resources.rb in finapps-2.0.17 vs lib/finapps/rest/resources.rb in finapps-2.0.19

- old
+ new

@@ -13,9 +13,14 @@ raise InvalidArgumentsError.new 'Invalid argument: client.' unless client.is_a?(FinApps::REST::Client) @client = client end + def list(path=nil) + path = end_point.to_s if path.nil? + request_with_body(path, :get, {}) + end + def create(params={}, path=nil) request_with_body(path, :post, params) end def update(params={}, path=nil)