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, WithHeader
Defined Under Namespace
Classes: CacheCleared, CacheHit, Failed, MultiDone, Requested, WithHeader
Instance Attribute Summary
Attributes inherited from EventStruct
Instance Method Summary collapse
-
#name ⇒ Object
self.class.name if RUBY_VERSION >= ‘1.9.2’.
- #to_s ⇒ Object
Instance Method Details
#name ⇒ Object
self.class.name if RUBY_VERSION >= ‘1.9.2’
8 |
# File 'lib/rest-core/event.rb', line 8 def name; self.class.name[/::(\w+)$/u, 1] ; end |
#to_s ⇒ Object
9 |
# File 'lib/rest-core/event.rb', line 9 def to_s; "spent #{duration} #{name} #{}"; end |