### Home Classes Methods

### In Files

- lib/stella/report.rb

### Parent

Storable

### Namespace

- MODULE Stella::Report::Statuses::ReportMethods

### Methods

- #nonsuccessful
- #process
- #redirect?
- #redirected
- #success?
- #successful

### Included Modules

- Gibbler::Complex
- Stella::Report::Plugin

### Files

- LICENSE.txt
- TODO

### Class/Module Index

Quicksearch

- Stella
- Stella::API
- Stella::API::Unauthorized
- Stella::Asserts
- Stella::CLI
- Stella::Client
- Stella::Common
- Stella::Common::PrivacyMethods
- Stella::ET
- Stella::Engine
- Stella::Engine::Base
- Stella::Engine::Base::ClassMethods
- Stella::Engine::Checkup
- Stella::EventTemplate
- Stella::ForcedRedirect
- Stella::HTTPError
- Stella::Log
- Stella::Log::HTTP
- Stella::PageError
- Stella::RT
- Stella::RepeatRequest
- Stella::Report
- Stella::Report::Content
- Stella::Report::Content::ReportMethods
- Stella::Report::Errors
- Stella::Report::Errors::ReportMethods
- Stella::Report::Headers
- Stella::Report::Metrics
- Stella::Report::Metrics::ReportMethods
- Stella::Report::Plugin
- Stella::Report::Plugin::ClassMethods
- Stella::Report::Statuses
- Stella::Report::Statuses::ReportMethods
- Stella::RequestError
- Stella::RequestTemplate
- Stella::Session
- Stella::StringTemplate
- Stella::TP
- Stella::Testplan
- Stella::Testplan::ClassMethods
- Stella::TestplanQuit
- Stella::Testrun
- Stella::TimeoutError
- Stella::UC
- Stella::Usecase
- Stella::Usecase::ClassMethods
- Stella::UsecaseError
- Stella::UsecaseFail
- Stella::Utils
- Stella::VERSION
- Addressable
- Addressable::URI
- Time
- Time::Units
- Array
- DefaultTestplan
- Float
- Hash
- MatchData
- MetricsPack
- Numeric
- Object
- OpenStruct
- StellaBehavior
- StellaError
- String
- Symbol
- Thread

No matching classes.

# Stella::Report::Statuses

### Public Instance Methods

nonsuccessful() click to toggle source

    # File lib/stella/report.rb, line 200
    def nonsuccessful
      @values.select { |status| status.to_i >= 400 }
    end

process(filter={}) click to toggle source

    # File lib/stella/report.rb, line 196
    def process(filter={})
      @values = report.content.log.collect { |entry| entry.tag_values(:status) }.flatten
      processed!
    end

redirect?() click to toggle source

    # File lib/stella/report.rb, line 212
    def redirect?
      @values.size == redirected.size
    end

redirected() click to toggle source

    # File lib/stella/report.rb, line 206
    def redirected
      @values.select { |status| (300..399).member?(status.to_i) }
    end

success?() click to toggle source

    # File lib/stella/report.rb, line 209
    def success?
      nonsuccessful.empty?
    end

successful() click to toggle source

    # File lib/stella/report.rb, line 203
    def successful
      @values.select { |status| status.to_i < 400 }
    end

[Validate]

Generated with the Darkfish Rdoc Generator 2.