Class: RestGraph::Event
- Inherits:
-
EventStruct
- Object
- Struct
- EventStruct
- RestGraph::Event
- Defined in:
- lib/rest-graph/core.rb
Defined Under Namespace
Classes: CacheHit, Failed, MultiDone, Requested
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’
38 |
# File 'lib/rest-graph/core.rb', line 38 def name; self.class.name[/::\w+$/].tr(':', ''); end |
#to_s ⇒ Object
39 |
# File 'lib/rest-graph/core.rb', line 39 def to_s; "RestGraph: spent #{sprintf('%f', duration)} #{name} #{url}";end |