module TimeScales::Frame::PartComponents::HasMinuteOfHour

Attributes

minute[R]
minute_of_hour[R]

Public Class Methods

included(other) click to toggle source
# File lib/time_scales/frame/part_components.rb, line 157
def self.included(other)
  other.extend HasMinuteOfHour::ClassMixin
end

Private Instance Methods

_initialize(args_array) click to toggle source
Calls superclass method
# File lib/time_scales/frame/part_components.rb, line 167
def _initialize(args_array)
  super
  @minute_of_hour = ensure_fixnum( args_array.shift )
end
prepare_time_struct(struct) click to toggle source
Calls superclass method
# File lib/time_scales/frame/part_components.rb, line 172
def prepare_time_struct(struct)
  struct.minute = struct.minute.to_i + minute_of_hour
  super
end