Class: RubyCritic::Command::StatusReporter

Inherits:
Object
  • Object
show all
Defined in:
lib/rubycritic/commands/status_reporter.rb

Constant Summary collapse

SUCCESS =
0
SCORE_BELOW_MINIMUM =
1

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(options) ⇒ StatusReporter

Returns a new instance of StatusReporter.


9
10
11
12
# File 'lib/rubycritic/commands/status_reporter.rb', line 9

def initialize(options)
  @options = options
  @status = SUCCESS
end

Instance Attribute Details

#scoreObject

Returns the value of attribute score


5
6
7
# File 'lib/rubycritic/commands/status_reporter.rb', line 5

def score
  @score
end

#statusObject (readonly)

Returns the value of attribute status


5
6
7
# File 'lib/rubycritic/commands/status_reporter.rb', line 5

def status
  @status
end

#status_messageObject (readonly)

Returns the value of attribute status_message


5
6
7
# File 'lib/rubycritic/commands/status_reporter.rb', line 5

def status_message
  @status_message
end