Class: SkyDB

Inherits:
Object
  • Object
show all
Defined in:
lib/skydb.rb,
lib/skydb/event.rb,
lib/skydb/table.rb,
lib/skydb/client.rb,
lib/skydb/version.rb,
lib/skydb/property.rb

Defined Under Namespace

Classes: Client, Event, Property, SkyError, Table

Constant Summary collapse

VERSION =
"0.3.0"

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.debugObject

Returns the value of attribute debug.



25
26
27
# File 'lib/skydb.rb', line 25

def debug
  @debug
end

Class Method Details

.format_timestamp(timestamp) ⇒ Object

Formats a timestamp as ISO8601 formatted string with fractional seconds.



40
41
42
43
44
45
46
# File 'lib/skydb.rb', line 40

def self.format_timestamp(timestamp)
  if timestamp.nil?
    return nil
  else
    return timestamp.to_time.utc.to_datetime.strftime('%Y-%m-%dT%H:%M:%S.%6NZ')
  end
end