Class: Miyako::Segment

Inherits:
Object show all
Defined in:
lib/Miyako/API/struct_segment.rb

Instance Method Summary collapse

Constructor Details

#initialize(*params) ⇒ Segment

Returns a new instance of Segment.



640
641
642
643
# File 'lib/Miyako/API/struct_segment.rb', line 640

def initialize(*params)
  super(*params)
  self.min, self.max = self.max, self.min if self.min > self.max
end