Class: UserBudget
- Inherits:
-
Object
- Object
- UserBudget
- Defined in:
- lib/model/user_budget.rb
Instance Method Summary collapse
- #amount ⇒ Object
- #budget_type ⇒ Object
-
#initialize(budget_type, amount) ⇒ UserBudget
constructor
A new instance of UserBudget.
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
#amount ⇒ Object
11 12 13 |
# File 'lib/model/user_budget.rb', line 11 def amount @amount end |
#budget_type ⇒ Object
7 8 9 |
# File 'lib/model/user_budget.rb', line 7 def budget_type @budget_type end |