Class: LookOfPerformance::Output
- Inherits:
-
String
- Object
- String
- LookOfPerformance::Output
- Defined in:
- lib/look_of_performance/output.rb
Instance Method Summary collapse
-
#initialize(duration, config = ::LookOfPerformance::Configuration) ⇒ Output
constructor
A new instance of Output.
- #sendable? ⇒ Boolean
- #to_s ⇒ Object
Constructor Details
#initialize(duration, config = ::LookOfPerformance::Configuration) ⇒ Output
Returns a new instance of Output.
3 4 5 6 |
# File 'lib/look_of_performance/output.rb', line 3 def initialize(duration, config = ::LookOfPerformance::Configuration) self.duration = duration self.config = config end |
Instance Method Details
#sendable? ⇒ Boolean
12 13 14 |
# File 'lib/look_of_performance/output.rb', line 12 def sendable? duration > limit end |
#to_s ⇒ Object
8 9 10 |
# File 'lib/look_of_performance/output.rb', line 8 def to_s (1..times).map { |_| scolding }.join(delimiter) end |