Class: Radiator::Type::PointInTime
Overview
Instance Method Summary
collapse
Methods included from Utils
#hexlify, #pakArr, #pakC, #pakHash, #pakI, #pakL!, #pakS, #pakStr, #pakc, #paks, #unhexlify, #varint
Constructor Details
6
7
8
|
# File 'lib/radiator/type/point_in_time.rb', line 6
def initialize(value)
super(:point_in_time, value)
end
|
Instance Method Details
#to_bytes ⇒ Object
10
11
12
|
# File 'lib/radiator/type/point_in_time.rb', line 10
def to_bytes
[Time.parse(@value + 'Z').to_i].pack('I')
end
|
#to_s ⇒ Object
14
15
16
|
# File 'lib/radiator/type/point_in_time.rb', line 14
def to_s
@value
end
|