Class: SkyDB
- Inherits:
-
Object
- Object
- SkyDB
- 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
-
.debug ⇒ Object
Returns the value of attribute debug.
Class Method Summary collapse
-
.format_timestamp(timestamp) ⇒ Object
Formats a timestamp as ISO8601 formatted string with fractional seconds.
Class Attribute Details
.debug ⇒ Object
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.() if .nil? return nil else return .to_time.utc.to_datetime.strftime('%Y-%m-%dT%H:%M:%S.%6NZ') end end |