Module: Stella::Report::Statuses::ReportMethods
- Defined in:
- lib/stella/report.rb
Instance Method Summary collapse
Instance Method Details
#redirect? ⇒ Boolean
216 217 218 |
# File 'lib/stella/report.rb', line 216 def redirect? statuses.redirect? end |
#statuses_pretty ⇒ Object
222 223 224 225 226 227 228 229 230 231 |
# File 'lib/stella/report.rb', line 222 def statuses_pretty pretty = ["Statuses"] if statuses.successful.size > 0 pretty << '%20s: %s' % ['successful', statuses.successful.join(', ')] end if statuses.nonsuccessful.size > 0 pretty << '%20s: %s' % ['nonsuccessful', statuses.nonsuccessful.join(', ')] end pretty.join $/ end |
#success? ⇒ Boolean
219 220 221 |
# File 'lib/stella/report.rb', line 219 def success? statuses.success? end |