Class: Ambling::Xy::Settings::DateFormats::AxisValues
- Inherits:
-
Object
- Object
- Ambling::Xy::Settings::DateFormats::AxisValues
- 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
-
#DD ⇒ Object
- first=“month DD, YYYY” regular=“month DD”
-
date formats when interval is day.
-
#hh ⇒ Object
- first=“month DD, YYYY” regular=“hh:mm”
-
date formats when interval is hour.
-
#mm ⇒ Object
- first=“month DD, YYYY” regular=“hh:mm”
-
date formats when interval is minute.
-
#MM ⇒ Object
- first=“month, YYYY” regular=“month”
-
date formats when interval is month.
-
#ss ⇒ Object
- first=“month DD, YYYY” regular=“hh:mm:ss”
-
date formats when interval is second.
-
#YYYY ⇒ Object
- first=“YYYY” regular=“YYYY”
-
date formats when interval is year.
Method Summary
Methods included from Base
#build_xml, #initialize, #populate, #to_xml
Instance Attribute Details
#DD ⇒ Object
- 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 |
#hh ⇒ Object
- 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 |
#mm ⇒ Object
- 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 |
#MM ⇒ Object
- 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 |
#ss ⇒ Object
- 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 |
#YYYY ⇒ Object
- first=“YYYY” regular=“YYYY”
-
date formats when interval is year
739 740 741 |
# File 'lib/ambling/xy.rb', line 739 def YYYY @YYYY end |