lib/finapps/rest/resources.rb in finapps-2.0.12 vs lib/finapps/rest/resources.rb in finapps-2.0.13

- old
+ new

@@ -8,9 +8,10 @@ # @param [FinApps::REST::Client] client # @return [FinApps::REST::Resources] def initialize(client) raise MissingArgumentsError.new 'Missing argument: client.' if client.nil? + raise InvalidArgumentsError.new 'Invalid argument: client.' unless client.is_a?(FinApps::REST::Client) @client = client end def create(params={}, path=nil) path = end_point if path.nil?