Class: OpenStruct

Inherits:
Object
  • Object
show all
Defined in:
lib/sensu_generator/consul.rb

Instance Method Summary collapse

Instance Method Details

#remove_consul_indexesObject



60
61
62
63
64
65
# File 'lib/sensu_generator/consul.rb', line 60

def remove_consul_indexes
  %w(CreateIndex ModifyIndex).each do |f|
    self.delete_field(f) if self.respond_to?(f)
  end
  self
end