Module: Neography::Rest::Clean
Instance Method Summary collapse
Methods included from Helpers
#encode, #escape, #get_id, #json_content_type, #parse_depth, #parse_direction, #parse_order, #parse_type, #parse_uniqueness
Instance Method Details
#clean_database(sanity_check = "not_really") ⇒ Object
6 7 8 9 10 11 12 13 |
# File 'lib/neography/rest/clean.rb', line 6 def clean_database(sanity_check = "not_really") if sanity_check == "yes_i_really_want_to_clean_the_database" @connection.delete("/cleandb/secret-key") true else false end end |