lib/finapps/rest/budget_models.rb in finapps-1.0.6 vs lib/finapps/rest/budget_models.rb in finapps-1.0.7

- old
+ new

@@ -8,26 +8,26 @@ # Lists all budget models. # @return [Array<Hash>, Array<String>] def list path = Defaults::END_POINTS[:budget_models_list] - logger.debug "##{__method__.to_s} => path: #{path}" + logger.debug "##{__method__} => path: #{path}" budget_models, error_messages = client.send_request(path, :get) return budget_models, error_messages end # Shows a budget model matching a given budget_model_id # @param [Integer] budget_model_id def show(budget_model_id) raise MissingArgumentsError.new 'Missing argument: budget_model_id.' if budget_model_id.blank? - logger.debug "##{__method__.to_s} => budget_model_id: #{budget_model_id}" + logger.debug "##{__method__} => budget_model_id: #{budget_model_id}" end_point = Defaults::END_POINTS[:budget_models_show] - logger.debug "##{__method__.to_s} => end_point: #{end_point}" + logger.debug "##{__method__} => end_point: #{end_point}" path = end_point.sub ':budget_model_id', ERB::Util.url_encode(budget_model_id) - logger.debug "##{__method__.to_s} => path: #{path}" + logger.debug "##{__method__} => path: #{path}" budget_model, error_messages = client.send_request(path, :get) { |r| BudgetModel.new(r.body) } return budget_model, error_messages end \ No newline at end of file