class Radiator::Type::PointInTime

See: github.com/xeroc/python-graphenelib/blob/98de98e219264d45fe04b3c28f3aabd1a9f58b71/graphenebase/types.py

Public Class Methods

new(value) click to toggle source
Calls superclass method
# File lib/radiator/type/point_in_time.rb, line 6
def initialize(value)
  super(:point_in_time, value)
end

Public Instance Methods

to_bytes() click to toggle source
# File lib/radiator/type/point_in_time.rb, line 10
def to_bytes
  [Time.parse(@value + 'Z').to_i].pack('I')
end
to_s() click to toggle source
# File lib/radiator/type/point_in_time.rb, line 14
def to_s
  @value
end