Class: IndexShotgun::Analyzer::Response
- Inherits:
-
Object
- Object
- IndexShotgun::Analyzer::Response
- Defined in:
- lib/index_shotgun/analyzer.rb
Instance Attribute Summary collapse
-
#duplicate_index_count ⇒ Object
Returns the value of attribute duplicate_index_count.
-
#message ⇒ Object
Returns the value of attribute message.
-
#total_index_count ⇒ Object
Returns the value of attribute total_index_count.
-
#total_table_count ⇒ Object
Returns the value of attribute total_table_count.
Instance Method Summary collapse
Instance Attribute Details
#duplicate_index_count ⇒ Object
Returns the value of attribute duplicate_index_count.
6 7 8 |
# File 'lib/index_shotgun/analyzer.rb', line 6 def duplicate_index_count @duplicate_index_count end |
#message ⇒ Object
Returns the value of attribute message.
6 7 8 |
# File 'lib/index_shotgun/analyzer.rb', line 6 def @message end |
#total_index_count ⇒ Object
Returns the value of attribute total_index_count.
6 7 8 |
# File 'lib/index_shotgun/analyzer.rb', line 6 def total_index_count @total_index_count end |
#total_table_count ⇒ Object
Returns the value of attribute total_table_count.
6 7 8 |
# File 'lib/index_shotgun/analyzer.rb', line 6 def total_table_count @total_table_count end |
Instance Method Details
#exit_if_failure! ⇒ Object
12 13 14 |
# File 'lib/index_shotgun/analyzer.rb', line 12 def exit_if_failure! exit(1) unless successful? end |
#successful? ⇒ Boolean
8 9 10 |
# File 'lib/index_shotgun/analyzer.rb', line 8 def successful? duplicate_index_count == 0 end |