Module: Hipaapotamus::Agent

Extended by:
ActiveSupport::Concern
Included in:
SystemAgent
Defined in:
lib/hipaapotamus/agent.rb

Instance Method Summary collapse

Instance Method Details

#hipaapotamus_display_nameObject



12
13
14
# File 'lib/hipaapotamus/agent.rb', line 12

def hipaapotamus_display_name
  "#{self.class.name}(id=#{id})" rescue self.class.name
end

#with_accountability(&block) ⇒ Object



8
9
10
# File 'lib/hipaapotamus/agent.rb', line 8

def with_accountability(&block)
  Hipaapotamus.with_accountability(self, &block)
end