lib/balanced/resources/credit.rb in balanced-0.5.4 vs lib/balanced/resources/credit.rb in balanced-0.5.5

- old
+ new

@@ -7,9 +7,17 @@ # funding source. # class Credit include Balanced::Resource + # @param [Array] args + # @option [String] :uri the uri of the credit, in the case of an update + # @option [Hash] :bank_account + # @option [Integer] :amount amount in cents + # @option [String] :description a text description of the credit + # @option [String] :appears_on_statement_as + # @option [Hash] :meta + # @option [String] :destination_uri the uri of the bank account to credit def initialize *args options = args.last.is_a?(Hash) ? args.pop : {} uri = options.fetch(:uri) { self.class.uri } bank_account = options.fetch(:bank_account) {} amount = args[0] || options.fetch(:amount) { }