Class: BqQuery::Attribute::Timestamp

Inherits:
Base
  • Object
show all
Defined in:
lib/bq_query/attribute/timestamp.rb

Instance Attribute Summary

Attributes inherited from Base

#name, #type, #value

Instance Method Summary collapse

Methods inherited from Base

#initialize

Constructor Details

This class inherits a constructor from BqQuery::Attribute::Base

Instance Method Details

#parseObject



4
5
6
7
# File 'lib/bq_query/attribute/timestamp.rb', line 4

def parse
  return nil if @value.nil?
  Time.at(@value.to_f)
end