From 7110b8c860d3c9acca5a5219fc271d9442ea1c80 Mon Sep 17 00:00:00 2001 From: Jason Garber Date: Tue, 17 Jul 2018 16:44:25 -0400 Subject: [PATCH] Update documentation --- README.md | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index aef627c..6081d81 100644 --- a/README.md +++ b/README.md @@ -65,18 +65,15 @@ puts endpoint.nil? # returns Boolean: true ### Advanced Usage -Should the need arise, you may work directly with the `Webmention::Endpoint::Discover` class: +Should the need arise, you may work directly with the `Webmention::Endpoint::Client` class: ```ruby require 'webmention/endpoint' -discoverer = Webmention::Endpoint::Discover.new('https://webmention.rocks/test/1') +client = Webmention::Endpoint::Client.new('https://webmention.rocks/test/1') -puts discoverer.url # returns String: 'https://webmention.rocks/test/1' -puts discoverer.endpoint # returns String: 'https://webmention.rocks/test/1/webmention' - -puts discoverer.uri # returns Addressable::URI -puts discoverer.response # returns HTTP::Response +puts client.response # returns HTTP::Response +puts client.endpoint # returns String: 'https://webmention.rocks/test/1/webmention' ``` ### Exception Handling