Class: Hackle::UserEvent
- Inherits:
-
Object
- Object
- Hackle::UserEvent
- Defined in:
- lib/hackle/events/user_event.rb
Defined Under Namespace
Instance Attribute Summary collapse
- #timestamp ⇒ Integer readonly
-
#user ⇒ Object
readonly
Returns the value of attribute user.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(user:) ⇒ UserEvent
constructor
A new instance of UserEvent.
Constructor Details
Instance Attribute Details
#timestamp ⇒ Integer (readonly)
11 12 13 |
# File 'lib/hackle/events/user_event.rb', line 11 def @timestamp end |
#user ⇒ Object (readonly)
Returns the value of attribute user.
11 |
# File 'lib/hackle/events/user_event.rb', line 11 attr_reader :timestamp, :user |
Class Method Details
.generate_timestamp ⇒ Integer
57 58 59 |
# File 'lib/hackle/events/user_event.rb', line 57 def self. (Time.now.to_f * 1000).to_i end |