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.


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

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

Instance Attribute Details

#scoreObject

Returns the value of attribute score


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

def score
  @score
end

#statusObject (readonly)

Returns the value of attribute status


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

def status
  @status
end

#status_messageObject (readonly)

Returns the value of attribute status_message


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

def status_message
  @status_message
end