Class: Ifin24::Models::Entry

Inherits:
Base
  • Object
show all
Defined in:
lib/ifin24/models/entry.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Base

#initialize

Constructor Details

This class inherits a constructor from Ifin24::Models::Base

Instance Attribute Details

#accountObject

Returns the value of attribute account.



5
6
7
# File 'lib/ifin24/models/entry.rb', line 5

def 
  @account
end

#amountObject

TODO Add validations



4
5
6
# File 'lib/ifin24/models/entry.rb', line 4

def amount
  @amount
end

#categoryObject

Returns the value of attribute category.



7
8
9
# File 'lib/ifin24/models/entry.rb', line 7

def category
  @category
end

#dateObject

TODO Add validations



4
5
6
# File 'lib/ifin24/models/entry.rb', line 4

def date
  @date
end

#noteObject

TODO Add validations



4
5
6
# File 'lib/ifin24/models/entry.rb', line 4

def note
  @note
end

#sub_categoryObject

Returns the value of attribute sub_category.



8
9
10
# File 'lib/ifin24/models/entry.rb', line 8

def sub_category
  @sub_category
end

#tagsObject

TODO Add validations



4
5
6
# File 'lib/ifin24/models/entry.rb', line 4

def tags
  @tags
end

#titleObject

TODO Add validations



4
5
6
# File 'lib/ifin24/models/entry.rb', line 4

def title
  @title
end

Instance Method Details

#category_full_nameObject



10
11
12
# File 'lib/ifin24/models/entry.rb', line 10

def category_full_name
  "#{category.name} | #{sub_category.name}"
end