Class: InternetSecurityEvent::Now
- Inherits:
-
Object
- Object
- InternetSecurityEvent::Now
- Includes:
- Singleton
- Defined in:
- lib/internet_security_event/now.rb
Instance Attribute Summary collapse
-
#now ⇒ Object
readonly
Returns the value of attribute now.
Instance Method Summary collapse
-
#initialize ⇒ Now
constructor
A new instance of Now.
Constructor Details
#initialize ⇒ Now
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
#now ⇒ Object (readonly)
Returns the value of attribute now.
13 14 15 |
# File 'lib/internet_security_event/now.rb', line 13 def now @now end |