Class: MTP::Properties::Forms::Range

Inherits:
None
  • Object
show all
Defined in:
lib/mtp/properties.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from None

#pack, #unpack

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_valueObject (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_valueObject (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_sizeObject (readonly)

Returns the value of attribute step_size.



164
165
166
# File 'lib/mtp/properties.rb', line 164

def step_size
  @step_size
end