Class: IndexShotgun::Analyzer::Response

Inherits:
Object
  • Object
show all
Defined in:
lib/index_shotgun/analyzer.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#duplicate_index_countObject

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

#messageObject

Returns the value of attribute message.



6
7
8
# File 'lib/index_shotgun/analyzer.rb', line 6

def message
  @message
end

#total_index_countObject

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_countObject

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

Returns:

  • (Boolean)


8
9
10
# File 'lib/index_shotgun/analyzer.rb', line 8

def successful?
  duplicate_index_count == 0
end