Class: Sol::Interval
- Inherits:
-
Object
- Object
- Sol::Interval
- Defined in:
- lib/sol/interval.rb
Overview
Instance Attribute Summary collapse
-
#spec ⇒ Object
readonly
Returns the value of attribute spec.
Instance Method Summary collapse
-
#day ⇒ Object
————————————————————————————.
-
#friday ⇒ Object
————————————————————————————.
-
#hour ⇒ Object
————————————————————————————.
-
#initialize ⇒ Interval
constructor
————————————————————————————.
-
#minute ⇒ Object
————————————————————————————.
-
#monday ⇒ Object
————————————————————————————.
-
#month ⇒ Object
————————————————————————————.
-
#saturday ⇒ Object
————————————————————————————.
-
#second ⇒ Object
————————————————————————————.
-
#sunday ⇒ Object
————————————————————————————.
-
#thursday ⇒ Object
————————————————————————————.
-
#tuesday ⇒ Object
————————————————————————————.
-
#wednesday ⇒ Object
————————————————————————————.
-
#week ⇒ Object
————————————————————————————.
-
#year ⇒ Object
————————————————————————————.
Constructor Details
#initialize ⇒ Interval
38 39 40 |
# File 'lib/sol/interval.rb', line 38 def initialize @spec = "d3.time" end |
Instance Attribute Details
#spec ⇒ Object (readonly)
Returns the value of attribute spec.
32 33 34 |
# File 'lib/sol/interval.rb', line 32 def spec @spec end |
Instance Method Details
#day ⇒ Object
70 71 72 |
# File 'lib/sol/interval.rb', line 70 def day @spec << ".day" end |
#friday ⇒ Object
126 127 128 |
# File 'lib/sol/interval.rb', line 126 def friday @spec << ".friday" end |
#hour ⇒ Object
62 63 64 |
# File 'lib/sol/interval.rb', line 62 def hour @spec << ".hour" end |
#minute ⇒ Object
54 55 56 |
# File 'lib/sol/interval.rb', line 54 def minute @spec << ".minute" end |
#monday ⇒ Object
94 95 96 |
# File 'lib/sol/interval.rb', line 94 def monday @spec << ".monday" end |
#month ⇒ Object
142 143 144 |
# File 'lib/sol/interval.rb', line 142 def month @spec << ".month" end |
#saturday ⇒ Object
134 135 136 |
# File 'lib/sol/interval.rb', line 134 def saturday @spec << ".saturday" end |
#second ⇒ Object
46 47 48 |
# File 'lib/sol/interval.rb', line 46 def second @spec << ".second" end |
#sunday ⇒ Object
86 87 88 |
# File 'lib/sol/interval.rb', line 86 def sunday @spec << ".sunday" end |
#thursday ⇒ Object
118 119 120 |
# File 'lib/sol/interval.rb', line 118 def thursday @spec << ".thursday" end |
#tuesday ⇒ Object
102 103 104 |
# File 'lib/sol/interval.rb', line 102 def tuesday @spec << ".tuesday" end |
#wednesday ⇒ Object
110 111 112 |
# File 'lib/sol/interval.rb', line 110 def wednesday @spec << ".wednesday" end |
#week ⇒ Object
78 79 80 |
# File 'lib/sol/interval.rb', line 78 def week @spec << ".week" end |
#year ⇒ Object
150 151 152 |
# File 'lib/sol/interval.rb', line 150 def year @spec << ".year" end |