Class: ROI::RentabilityLine

Inherits:
Object
  • Object
show all
Defined in:
lib/roi/rentability_line.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(reference_date, rentability, quota, have_position) ⇒ RentabilityLine

Returns a new instance of RentabilityLine.



8
9
10
11
12
13
# File 'lib/roi/rentability_line.rb', line 8

def initialize(reference_date, rentability, quota, have_position)
  @reference_date = reference_date
  @rentability = rentability
  @quota = quota
  @have_position = have_position
end

Instance Attribute Details

#gross_profitObject (readonly)

Returns the value of attribute gross_profit.



5
6
7
# File 'lib/roi/rentability_line.rb', line 5

def gross_profit
  @gross_profit
end

#have_positionObject (readonly)

Returns the value of attribute have_position.



5
6
7
# File 'lib/roi/rentability_line.rb', line 5

def have_position
  @have_position
end

#quotaObject (readonly)

Returns the value of attribute quota.



5
6
7
# File 'lib/roi/rentability_line.rb', line 5

def quota
  @quota
end

#reference_dateObject (readonly)

Returns the value of attribute reference_date.



5
6
7
# File 'lib/roi/rentability_line.rb', line 5

def reference_date
  @reference_date
end

#rentabilityObject (readonly)

Returns the value of attribute rentability.



5
6
7
# File 'lib/roi/rentability_line.rb', line 5

def rentability
  @rentability
end