Class: ROI::RentabilityLine
- Inherits:
-
Object
- Object
- ROI::RentabilityLine
- Defined in:
- lib/roi/rentability_line.rb
Instance Attribute Summary collapse
-
#gross_profit ⇒ Object
readonly
Returns the value of attribute gross_profit.
-
#have_position ⇒ Object
readonly
Returns the value of attribute have_position.
-
#quota ⇒ Object
readonly
Returns the value of attribute quota.
-
#reference_date ⇒ Object
readonly
Returns the value of attribute reference_date.
-
#rentability ⇒ Object
readonly
Returns the value of attribute rentability.
Instance Method Summary collapse
-
#initialize(reference_date, rentability, quota, have_position) ⇒ RentabilityLine
constructor
A new instance of RentabilityLine.
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_profit ⇒ Object (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_position ⇒ Object (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 |
#quota ⇒ Object (readonly)
Returns the value of attribute quota.
5 6 7 |
# File 'lib/roi/rentability_line.rb', line 5 def quota @quota end |
#reference_date ⇒ Object (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 |
#rentability ⇒ Object (readonly)
Returns the value of attribute rentability.
5 6 7 |
# File 'lib/roi/rentability_line.rb', line 5 def rentability @rentability end |