Class: Cartridge::ScaleRelation

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

Constant Summary collapse

Null =
new(nil,nil,1)

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#onObject

Returns the value of attribute on.



105
106
107
# File 'app/models/cartridge.rb', line 105

def on
  @on
end

#timesObject

Returns the value of attribute times.



105
106
107
# File 'app/models/cartridge.rb', line 105

def times
  @times
end

#withObject

Returns the value of attribute with.



105
106
107
# File 'app/models/cartridge.rb', line 105

def with
  @with
end