Class: Sidekiq::ProfileRecord
- Inherits:
-
Object
- Object
- Sidekiq::ProfileRecord
- Defined in:
- lib/sidekiq/api.rb
Instance Attribute Summary collapse
-
#elapsed ⇒ Object
readonly
Returns the value of attribute elapsed.
-
#jid ⇒ Object
readonly
Returns the value of attribute jid.
-
#size ⇒ Object
readonly
Returns the value of attribute size.
-
#started_at ⇒ Object
readonly
Returns the value of attribute started_at.
-
#token ⇒ Object
readonly
Returns the value of attribute token.
-
#type ⇒ Object
readonly
Returns the value of attribute type.
Instance Method Summary collapse
- #data ⇒ Object
-
#initialize(arr) ⇒ ProfileRecord
constructor
A new instance of ProfileRecord.
- #key ⇒ Object
Constructor Details
#initialize(arr) ⇒ ProfileRecord
Returns a new instance of ProfileRecord.
1382 1383 1384 1385 1386 1387 1388 1389 1390 |
# File 'lib/sidekiq/api.rb', line 1382 def initialize(arr) # Must be same order as fetch_keys above @started_at = Time.at(Integer(arr[0])) @jid = arr[1] @type = arr[2] @token = arr[3] @size = Integer(arr[4]) @elapsed = Float(arr[5]) end |
Instance Attribute Details
#elapsed ⇒ Object (readonly)
Returns the value of attribute elapsed.
1380 1381 1382 |
# File 'lib/sidekiq/api.rb', line 1380 def elapsed @elapsed end |
#jid ⇒ Object (readonly)
Returns the value of attribute jid.
1380 1381 1382 |
# File 'lib/sidekiq/api.rb', line 1380 def jid @jid end |
#size ⇒ Object (readonly)
Returns the value of attribute size.
1380 1381 1382 |
# File 'lib/sidekiq/api.rb', line 1380 def size @size end |
#started_at ⇒ Object (readonly)
Returns the value of attribute started_at.
1380 1381 1382 |
# File 'lib/sidekiq/api.rb', line 1380 def started_at @started_at end |
#token ⇒ Object (readonly)
Returns the value of attribute token.
1380 1381 1382 |
# File 'lib/sidekiq/api.rb', line 1380 def token @token end |
#type ⇒ Object (readonly)
Returns the value of attribute type.
1380 1381 1382 |
# File 'lib/sidekiq/api.rb', line 1380 def type @type end |