Class: Sol::Interval

Inherits:
Object
  • Object
show all
Defined in:
lib/sol/interval.rb

Overview

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeInterval





38
39
40
# File 'lib/sol/interval.rb', line 38

def initialize
  @spec = "d3.time"
end

Instance Attribute Details

#specObject (readonly)

Returns the value of attribute spec.



32
33
34
# File 'lib/sol/interval.rb', line 32

def spec
  @spec
end

Instance Method Details

#dayObject





70
71
72
# File 'lib/sol/interval.rb', line 70

def day
  @spec << ".day"
end

#fridayObject





126
127
128
# File 'lib/sol/interval.rb', line 126

def friday
  @spec << ".friday"
end

#hourObject





62
63
64
# File 'lib/sol/interval.rb', line 62

def hour
  @spec << ".hour"
end

#minuteObject





54
55
56
# File 'lib/sol/interval.rb', line 54

def minute
  @spec << ".minute"
end

#mondayObject





94
95
96
# File 'lib/sol/interval.rb', line 94

def monday
  @spec << ".monday"
end

#monthObject





142
143
144
# File 'lib/sol/interval.rb', line 142

def month
  @spec << ".month"
end

#saturdayObject





134
135
136
# File 'lib/sol/interval.rb', line 134

def saturday
  @spec << ".saturday"
end

#secondObject





46
47
48
# File 'lib/sol/interval.rb', line 46

def second
  @spec << ".second"
end

#sundayObject





86
87
88
# File 'lib/sol/interval.rb', line 86

def sunday
  @spec << ".sunday"
end

#thursdayObject





118
119
120
# File 'lib/sol/interval.rb', line 118

def thursday
  @spec << ".thursday"
end

#tuesdayObject





102
103
104
# File 'lib/sol/interval.rb', line 102

def tuesday
  @spec << ".tuesday"
end

#wednesdayObject





110
111
112
# File 'lib/sol/interval.rb', line 110

def wednesday
  @spec << ".wednesday"
end

#weekObject





78
79
80
# File 'lib/sol/interval.rb', line 78

def week
  @spec << ".week"
end

#yearObject





150
151
152
# File 'lib/sol/interval.rb', line 150

def year
  @spec << ".year"
end