Module: Gateway::Feature::Performance
- Included in:
- Base
- Defined in:
- lib/gateway/feature/performance.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.included(klass) ⇒ Object
4 5 6 7 8 |
# File 'lib/gateway/feature/performance.rb', line 4 def self.included(klass) klass.class_eval do class_attribute :profiler end if klass.is_a?(Class) end |
Instance Method Details
#profiler ⇒ Object
10 11 12 |
# File 'lib/gateway/feature/performance.rb', line 10 def profiler @profiler ||= ([:profiler] || self.class.profiler) end |