Class: Ifin24::Models::Entry
Instance Attribute Summary collapse
-
#account ⇒ Object
Returns the value of attribute account.
-
#amount ⇒ Object
TODO Add validations.
-
#category ⇒ Object
Returns the value of attribute category.
-
#date ⇒ Object
TODO Add validations.
-
#note ⇒ Object
TODO Add validations.
-
#sub_category ⇒ Object
Returns the value of attribute sub_category.
-
#tags ⇒ Object
TODO Add validations.
-
#title ⇒ Object
TODO Add validations.
Instance Method Summary collapse
Methods inherited from Base
Constructor Details
This class inherits a constructor from Ifin24::Models::Base
Instance Attribute Details
#account ⇒ Object
Returns the value of attribute account.
5 6 7 |
# File 'lib/ifin24/models/entry.rb', line 5 def account @account end |
#amount ⇒ Object
TODO Add validations
4 5 6 |
# File 'lib/ifin24/models/entry.rb', line 4 def amount @amount end |
#category ⇒ Object
Returns the value of attribute category.
7 8 9 |
# File 'lib/ifin24/models/entry.rb', line 7 def category @category end |
#date ⇒ Object
TODO Add validations
4 5 6 |
# File 'lib/ifin24/models/entry.rb', line 4 def date @date end |
#note ⇒ Object
TODO Add validations
4 5 6 |
# File 'lib/ifin24/models/entry.rb', line 4 def note @note end |
#sub_category ⇒ Object
Returns the value of attribute sub_category.
8 9 10 |
# File 'lib/ifin24/models/entry.rb', line 8 def sub_category @sub_category end |
#tags ⇒ Object
TODO Add validations
4 5 6 |
# File 'lib/ifin24/models/entry.rb', line 4 def @tags end |
#title ⇒ Object
TODO Add validations
4 5 6 |
# File 'lib/ifin24/models/entry.rb', line 4 def title @title end |
Instance Method Details
#category_full_name ⇒ Object
10 11 12 |
# File 'lib/ifin24/models/entry.rb', line 10 def category_full_name "#{category.name} | #{sub_category.name}" end |