Skip to content
This repository has been archived by the owner on Apr 25, 2019. It is now read-only.

Commit

Permalink
Update documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
jgarber623 committed Jul 17, 2018
1 parent 706f39b commit 7110b8c
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 7110b8c

Please sign in to comment.