Class: Cartridge::ScaleRelation
- Inherits:
-
Object
- Object
- Cartridge::ScaleRelation
- Defined in:
- app/models/cartridge.rb
Constant Summary collapse
- Null =
new(nil,nil,1)
Instance Attribute Summary collapse
-
#on ⇒ Object
Returns the value of attribute on.
-
#times ⇒ Object
Returns the value of attribute times.
-
#with ⇒ Object
Returns the value of attribute with.
Instance Method Summary collapse
-
#initialize(with, on, times) ⇒ ScaleRelation
constructor
A new instance of ScaleRelation.
Constructor Details
#initialize(with, on, times) ⇒ ScaleRelation
Returns a new instance of ScaleRelation.
107 108 109 |
# File 'app/models/cartridge.rb', line 107 def initialize(with, on, times) @with, @on, @times = with, on, times end |
Instance Attribute Details
#on ⇒ Object
Returns the value of attribute on.
105 106 107 |
# File 'app/models/cartridge.rb', line 105 def on @on end |
#times ⇒ Object
Returns the value of attribute times.
105 106 107 |
# File 'app/models/cartridge.rb', line 105 def times @times end |
#with ⇒ Object
Returns the value of attribute with.
105 106 107 |
# File 'app/models/cartridge.rb', line 105 def with @with end |