Class: InternetSecurityEvent::Now

Inherits:
Object
  • Object
show all
Includes:
Singleton
Defined in:
lib/internet_security_event/now.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeNow

Returns a new instance of Now.



9
10
11
# File 'lib/internet_security_event/now.rb', line 9

def initialize
  @now = Time.at(Time.now.to_i)
end

Instance Attribute Details

#nowObject (readonly)

Returns the value of attribute now.



13
14
15
# File 'lib/internet_security_event/now.rb', line 13

def now
  @now
end