Class: Profit

Inherits:
Object
  • Object
show all
Defined in:
app/models/profit.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#clientObject

Returns the value of attribute client.



2
3
4
# File 'app/models/profit.rb', line 2

def client
  @client
end

#yearObject

Returns the value of attribute year.



3
4
5
# File 'app/models/profit.rb', line 3

def year
  @year
end