class Dwolla::Accounts

Public Class Methods

get_auto_withdrawal_status(token=true) click to toggle source
# File lib/dwolla/accounts.rb, line 3
def self.get_auto_withdrawal_status(token=true)
  url = accounts_url + 'features/auto_withdrawl'

  Dwolla.request(:get, url, {}, {}, token)
end
toggle_auto_withdrawl(enabled=true, funding_id=nil, token=nil) click to toggle source
# File lib/dwolla/accounts.rb, line 9
def self.toggle_auto_withdrawl(enabled=true, funding_id=nil, token=nil)
    raise MissingParameterError.new('No Funding ID Provided.') if funding_id.nil?

    url = accounts_url + 'features/auto_withdrawl'
    params = {
        :enabled => enabled,
        :fundingId => funding_id
    }

    Dwolla.request(:post, url, params, {}, token)
end

Private Class Methods

accounts_url() click to toggle source
# File lib/dwolla/accounts.rb, line 23
def self.accounts_url
    return '/accounts/'
end