Class: ExcelAbstraction::Time

Inherits:
SimpleDelegator
  • Object
show all
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

Instance Method Summary collapse

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

#valueObject (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_timeObject



12
13
14
# File 'lib/excel_templating/excel_abstraction/time.rb', line 12

def to_excel_time
  self
end