Class: Ambling::Xy::Settings::DateFormats::AxisValues

Inherits:
Object
  • Object
show all
Includes:
Base
Defined in:
lib/ambling/xy.rb

Overview

when axis type is “date”, you must specify date formats for different intervals. “first” describes date format of the first grid line, “regular” - of all other grid lines

Constant Summary collapse

VALUES =
[:ss,:mm,:hh,:DD,:MM,:YYYY]

Instance Attribute Summary collapse

Method Summary

Methods included from Base

#build_xml, #initialize, #populate, #to_xml

Instance Attribute Details

#DDObject

first=“month DD, YYYY” regular=“month DD”

date formats when interval is day



729
730
731
# File 'lib/ambling/xy.rb', line 729

def DD
  @DD
end

#hhObject

first=“month DD, YYYY” regular=“hh:mm”

date formats when interval is hour



724
725
726
# File 'lib/ambling/xy.rb', line 724

def hh
  @hh
end

#mmObject

first=“month DD, YYYY” regular=“hh:mm”

date formats when interval is minute



719
720
721
# File 'lib/ambling/xy.rb', line 719

def mm
  @mm
end

#MMObject

first=“month, YYYY” regular=“month”

date formats when interval is month



734
735
736
# File 'lib/ambling/xy.rb', line 734

def MM
  @MM
end

#ssObject

first=“month DD, YYYY” regular=“hh:mm:ss”

date formats when interval is second



714
715
716
# File 'lib/ambling/xy.rb', line 714

def ss
  @ss
end

#YYYYObject

first=“YYYY” regular=“YYYY”

date formats when interval is year



739
740
741
# File 'lib/ambling/xy.rb', line 739

def YYYY
  @YYYY
end