lib/balanced/resources/api_key.rb in balanced-0.8.2 vs lib/balanced/resources/api_key.rb in balanced-1.0.beta1
- old
+ new
@@ -4,10 +4,14 @@
# Balanced API.
#
# *NOTE:* Never give out or expose your ApiKey. You may POST to this
# endpoint to create new ApiKeys and then DELETE any old keys.
class ApiKey
+
include Balanced::Resource
+ include Balanced::HypermediaRegistry
+
+ define_hypermedia_types [:api_keys]
def save
Balanced.configure nil
super
end