class YNAB::API
Public Class Methods
new(access_token, host = 'api.youneedabudget.com', useHttps = true)
click to toggle source
# File lib/ynab.rb, line 118 def initialize(access_token, host = 'api.youneedabudget.com', useHttps = true) config = Configuration.default config.api_key['Authorization'] = access_token config.api_key_prefix['Authorization'] = 'Bearer' config.scheme = useHttps ? 'https' : 'http' config.host = host config.base_path = '/v1' @client = ApiClient.new(config) end
Public Instance Methods
accounts()
click to toggle source
# File lib/ynab.rb, line 137 def accounts AccountsApi.new(@client) end
budgets()
click to toggle source
# File lib/ynab.rb, line 133 def budgets BudgetsApi.new(@client) end
categories()
click to toggle source
# File lib/ynab.rb, line 141 def categories CategoriesApi.new(@client) end
last_request()
click to toggle source
# File lib/ynab.rb, line 165 def last_request @client.last_request end
months()
click to toggle source
# File lib/ynab.rb, line 145 def months MonthsApi.new(@client) end
payee_locations()
click to toggle source
# File lib/ynab.rb, line 153 def payee_locations PayeeLocationsApi.new(@client) end
payees()
click to toggle source
# File lib/ynab.rb, line 149 def payees PayeesApi.new(@client) end
scheduled_transactions()
click to toggle source
# File lib/ynab.rb, line 161 def scheduled_transactions ScheduledTransactionsApi.new(@client) end
transactions()
click to toggle source
# File lib/ynab.rb, line 157 def transactions YNAB::Overrides::TransactionsApi.new(@client) end
user()
click to toggle source
# File lib/ynab.rb, line 129 def user UserApi.new(@client) end