Class: RestGraph::Event

Inherits:
EventStruct show all
Defined in:
lib/rest-graph/core.rb

Direct Known Subclasses

CacheHit, Failed, MultiDone, Requested

Defined Under Namespace

Classes: CacheHit, Failed, MultiDone, Requested

Instance Attribute Summary

Attributes inherited from EventStruct

#duration, #url

Instance Method Summary collapse

Instance Method Details

#nameObject

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_sObject



39
# File 'lib/rest-graph/core.rb', line 39

def to_s; "RestGraph: spent #{sprintf('%f', duration)} #{name} #{url}";end