Class: ExcelAbstraction::Time
- Inherits:
-
SimpleDelegator
- Object
- SimpleDelegator
- ExcelAbstraction::Time
- Defined in:
- lib/excel_templating/excel_abstraction/time.rb
Constant Summary collapse
- ADJUSTMENT =
"1900-03-01 00:00 +00:00"
- REFERENCE =
"1900-01-01 00:00 +00:00"
Instance Attribute Summary collapse
-
#value ⇒ Object
readonly
Returns the value of attribute value.
Instance Method Summary collapse
-
#initialize(raw_value) ⇒ Time
constructor
A new instance of Time.
- #to_excel_time ⇒ Object
Constructor Details
#initialize(raw_value) ⇒ Time
Returns a new instance of Time.
8 9 10 |
# File 'lib/excel_templating/excel_abstraction/time.rb', line 8 def initialize(raw_value) super(convert(raw_value)) end |
Instance Attribute Details
#value ⇒ Object (readonly)
Returns the value of attribute value.
6 7 8 |
# File 'lib/excel_templating/excel_abstraction/time.rb', line 6 def value @value end |
Instance Method Details
#to_excel_time ⇒ Object
12 13 14 |
# File 'lib/excel_templating/excel_abstraction/time.rb', line 12 def to_excel_time self end |