Class: MTP::Properties::Forms::Range
Instance Attribute Summary collapse
-
#maximum_value ⇒ Object
readonly
Returns the value of attribute maximum_value.
-
#minimum_value ⇒ Object
readonly
Returns the value of attribute minimum_value.
-
#step_size ⇒ Object
readonly
Returns the value of attribute step_size.
Instance Method Summary collapse
-
#initialize(form, dts) ⇒ Range
constructor
A new instance of Range.
Methods inherited from None
Constructor Details
#initialize(form, dts) ⇒ Range
Returns a new instance of Range.
165 166 167 |
# File 'lib/mtp/properties.rb', line 165 def initialize(form, dts) @minimum_value, @maximum_value, @step_size = form.unpack(dts.name * 3) end |
Instance Attribute Details
#maximum_value ⇒ Object (readonly)
Returns the value of attribute maximum_value.
164 165 166 |
# File 'lib/mtp/properties.rb', line 164 def maximum_value @maximum_value end |
#minimum_value ⇒ Object (readonly)
Returns the value of attribute minimum_value.
164 165 166 |
# File 'lib/mtp/properties.rb', line 164 def minimum_value @minimum_value end |
#step_size ⇒ Object (readonly)
Returns the value of attribute step_size.
164 165 166 |
# File 'lib/mtp/properties.rb', line 164 def step_size @step_size end |