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