Class: Time

Inherits:
Object
  • Object
show all
Defined in:
lib/snowflake-id.rb

Overview

Extends Time class.

Instance Method Summary collapse

Instance Method Details

#to_snowflakeObject

Converts Time object into Snowflake object.



63
64
65
# File 'lib/snowflake-id.rb', line 63

def to_snowflake
  return SnowflakeId.to_snowflake(self)
end