class Ynaby::User
Attributes
api_token[R]
Public Class Methods
new(api_token)
click to toggle source
# File lib/ynaby/user.rb, line 5 def initialize(api_token) @api_token = api_token end
Public Instance Methods
budget(id)
click to toggle source
# File lib/ynaby/user.rb, line 16 def budget(id) budgets.find { |budget| budget.id == id } end
budgets()
click to toggle source
# File lib/ynaby/user.rb, line 9 def budgets response = ynab_client.budgets.get_budgets response.data.budgets.map do |budget| Budget.parse(budget, self) end end