Class: RestCore::Event
- Inherits:
-
EventStruct
- Object
- Struct
- EventStruct
- RestCore::Event
- Defined in:
- lib/rest-core/event.rb
Direct Known Subclasses
CacheCleared, CacheHit, Failed, MultiDone, Requested, Retrying, WithHeader
Defined Under Namespace
Classes: CacheCleared, CacheHit, Failed, MultiDone, Requested, Retrying, WithHeader
Instance Attribute Summary
Attributes inherited from EventStruct
Instance Method Summary collapse
Instance Method Details
#name ⇒ Object
7 |
# File 'lib/rest-core/event.rb', line 7 def name; self.class.name[/(?<=::)\w+$/]; end |
#to_s ⇒ Object
8 9 10 11 12 13 14 |
# File 'lib/rest-core/event.rb', line 8 def to_s if duration "spent #{duration} #{name} #{}" else "#{name} #{}" end end |