Class: Profit
- Inherits:
-
Object
- Object
- Profit
- Defined in:
- app/models/profit.rb
Instance Attribute Summary collapse
-
#client ⇒ Object
Returns the value of attribute client.
-
#year ⇒ Object
Returns the value of attribute year.
Instance Method Summary collapse
-
#initialize(client, year = Time.now.year) ⇒ Profit
constructor
A new instance of Profit.
Constructor Details
#initialize(client, year = Time.now.year) ⇒ Profit
Returns a new instance of Profit.
5 6 7 8 |
# File 'app/models/profit.rb', line 5 def initialize(client, year = Time.now.year) @client = client @year = year end |
Instance Attribute Details
#client ⇒ Object
Returns the value of attribute client.
2 3 4 |
# File 'app/models/profit.rb', line 2 def client @client end |
#year ⇒ Object
Returns the value of attribute year.
3 4 5 |
# File 'app/models/profit.rb', line 3 def year @year end |