Class: TimeScales::Parts::HourOfDayClass

Inherits:
AbstractPart show all
Includes:
Singleton
Defined in:
lib/time_scales/parts.rb

Instance Method Summary collapse

Methods inherited from AbstractPart

#===, #name, #scale, #subdivision_name, #to_s, #to_time_scales_part

Instance Method Details

#&(time) ⇒ Object



215
216
217
# File 'lib/time_scales/parts.rb', line 215

def &(time)
  time.hour
end

#component_mixinObject



212
# File 'lib/time_scales/parts.rb', line 212

def component_mixin ; Frame::PartComponents::HasHourOfDay ; end

#default_for_unit?Boolean

Returns:

  • (Boolean)


211
# File 'lib/time_scales/parts.rb', line 211

def default_for_unit? ; false ; end

#scheme_scoped_precision_mixinObject



213
# File 'lib/time_scales/parts.rb', line 213

def scheme_scoped_precision_mixin ; Frame::Precisions::HasHourOfSchemePrecision ; end

#scopeObject



210
# File 'lib/time_scales/parts.rb', line 210

def scope       ; Units::Day  ; end

#subdivisionObject



209
# File 'lib/time_scales/parts.rb', line 209

def subdivision ; Units::Hour ; end

#symbolObject



208
# File 'lib/time_scales/parts.rb', line 208

def symbol ; :hour_of_day ; end