Module: Snafu::Util

Included in:
Client
Defined in:
lib/snafu/util.rb

Overview

Contains convenience methods that don't seem to fit anywhere else

Instance Method Summary (collapse)

Instance Method Details

- (Object) glitch_time(timestamp = nil)



4
5
6
7
8
9
10
# File 'lib/snafu/util.rb', line 4

def glitch_time(timestamp = nil)
  if timestamp
    Snafu::Models::GlitchTime.new(timestamp)
  else
    Snafu::Models::GlitchTime.new
  end
end