Class: Ferret::Utils::DateTools::Resolution
- Defined in:
- lib/ferret/utils/date_tools.rb
Constant Summary collapse
- YEAR =
Resolution.new("year", "%Y")
- MONTH =
Resolution.new("month", "%Y%m")
- DAY =
Resolution.new("day", "%Y%m%d")
- HOUR =
Resolution.new("hour", "%Y%m%d%H")
- MINUTE =
Resolution.new("minute", "%Y%m%d%H%M")
- SECOND =
Resolution.new("second", "%Y%m%d%H%M%S")
- MILLISECOND =
Resolution.new("millisecond", "%Y%m%d%H%M%S")
Instance Attribute Summary collapse
-
#format ⇒ Object
Returns the value of attribute format.
Instance Method Summary collapse
-
#initialize(name, format) ⇒ Resolution
constructor
A new instance of Resolution.
Methods inherited from Parameter
Constructor Details
#initialize(name, format) ⇒ Resolution
Returns a new instance of Resolution.
123 124 125 126 |
# File 'lib/ferret/utils/date_tools.rb', line 123 def initialize(name, format) super(name) @format = format end |
Instance Attribute Details
#format ⇒ Object
Returns the value of attribute format.
119 120 121 |
# File 'lib/ferret/utils/date_tools.rb', line 119 def format @format end |