Class: UserBudget

Inherits:
Object
  • Object
show all
Defined in:
lib/model/user_budget.rb

Instance Method Summary collapse

Constructor Details

#initialize(budget_type, amount) ⇒ UserBudget

Returns a new instance of UserBudget.



2
3
4
5
# File 'lib/model/user_budget.rb', line 2

def initialize(budget_type, amount)
    @budget_type = budget_type
    @amount = amount
end

Instance Method Details

#amountObject



11
12
13
# File 'lib/model/user_budget.rb', line 11

def amount
    @amount
end

#budget_typeObject



7
8
9
# File 'lib/model/user_budget.rb', line 7

def budget_type
    @budget_type
end