lib/moip2/webhooks_api.rb in moip2-0.1.4 vs lib/moip2/webhooks_api.rb in moip2-1.0.0

- old
+ new

@@ -1,17 +1,17 @@ module Moip2 - class WebhooksApi - attr_reader :client - - def initialize(client) - @client = client - end - - def base_path - "/v2/webhooks" - end - - def show - Resource::Webhooks.new(client, client.get("#{base_path}")) - end - end -end \ No newline at end of file + class WebhooksApi + attr_reader :client + + def initialize(client) + @client = client + end + + def base_path + "/v2/webhooks" + end + + def show + Resource::Webhooks.new(client, client.get(base_path.to_s)) + end + end +end