module TimeScales::Frame::PartComponents::HasHourOfDay
Attributes
hour[R]
hour_of_day[R]
Public Class Methods
included(other)
click to toggle source
# File lib/time_scales/frame/part_components.rb, line 127 def self.included(other) other.extend HasHourOfDay::ClassMixin end
Private Instance Methods
_initialize(args_array)
click to toggle source
Calls superclass method
# File lib/time_scales/frame/part_components.rb, line 137 def _initialize(args_array) super @hour_of_day = 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 142 def prepare_time_struct(struct) struct.hour = struct.hour.to_i + hour_of_day super end