lib/xcal/parktronic/routes/command_notifications.rb in xcal-parktronic-1.0.0 vs lib/xcal/parktronic/routes/command_notifications.rb in xcal-parktronic-1.0.1

- old
+ new

@@ -13,19 +13,17 @@ # ==== Examples # api.get_paged_command_notifications # api.command_notifications def get_paged_command_notifications(args = {}) args.merge!(access_token: access_token) - response = http.get("/#{api_version}/command_notifications?#{URI.encode_www_form(args)}") + response = get_response("/#{api_version}/command_notifications?#{URI.encode_www_form(args)}") generic_response = Xcal::Parktronic::GenericResponse.new(response.body) if response.code == '200' && generic_response.has_key?(:remote_commands) generic_response.remote_commands.map { |command| Xcal::Parktronic::GenericResponse.new(command.remote_command, self) } else generic_response end - - # TODO Add caching end alias :command_notifications :get_paged_command_notifications # Set inactive remote command