lib/moip2/keys_api.rb in moip2-0.1.4 vs lib/moip2/keys_api.rb in moip2-1.0.0
- old
+ new
@@ -1,17 +1,17 @@
module Moip2
- class KeysApi
- attr_reader :client
-
- def initialize(client)
- @client = client
- end
+ class KeysApi
+ attr_reader :client
- def base_path
- "/v2/keys"
- end
-
- def show
- Resource::Keys.new(client, client.get("#{base_path}"))
- end
- end
+ def initialize(client)
+ @client = client
+ end
+
+ def base_path
+ "/v2/keys"
+ end
+
+ def show
+ Resource::Keys.new(client, client.get(base_path.to_s))
+ end
+ end
end