Module: Webmention
- Defined in:
- lib/webmention.rb,
lib/webmention/url.rb,
lib/webmention/client.rb,
lib/webmention/parser.rb,
lib/webmention/request.rb,
lib/webmention/response.rb,
lib/webmention/verification.rb,
lib/webmention/error_response.rb,
lib/webmention/parsers/html_parser.rb,
lib/webmention/parsers/json_parser.rb,
lib/webmention/parsers/plaintext_parser.rb
Defined Under Namespace
Modules: Parsers Classes: Client, ErrorResponse, Parser, Request, Response, Url, Verification
Class Method Summary collapse
-
.mentioned_urls(url) ⇒ Array<String>
Retrieve unique URLs mentioned by the provided URL.
-
.send_webmention(source, target, vouch: nil) ⇒ Response, ErrorResponse
Send a webmention from a source URL to a target URL.
-
.send_webmentions(source, *targets, vouch: nil) ⇒ Array<Response, ErrorResponse>
Send webmentions from a source URL to multiple target URLs.
-
.verify_webmention(source, target, vouch: nil) ⇒ Boolean
Verify that a source URL links to a target URL.
Class Method Details
.mentioned_urls(url) ⇒ Array<String>
Retrieve unique URLs mentioned by the provided URL.
34 35 36 |
# File 'lib/webmention.rb', line 34 def self.mentioned_urls(url) Client.new(url).mentioned_urls end |
.send_webmention(source, target, vouch: nil) ⇒ Response, ErrorResponse
Send a webmention from a source URL to a target URL.
59 60 61 |
# File 'lib/webmention.rb', line 59 def self.send_webmention(source, target, vouch: nil) Client.new(source, vouch: vouch).send_webmention(target) end |
.send_webmentions(source, *targets, vouch: nil) ⇒ Array<Response, ErrorResponse>
Send webmentions from a source URL to multiple target URLs.
84 85 86 |
# File 'lib/webmention.rb', line 84 def self.send_webmentions(source, *targets, vouch: nil) Client.new(source, vouch: vouch).send_webmentions(*targets) end |
.verify_webmention(source, target, vouch: nil) ⇒ Boolean
Verify that a source URL links to a target URL.
95 96 97 |
# File 'lib/webmention.rb', line 95 def self.verify_webmention(source, target, vouch: nil) Client.new(source, vouch: vouch).verify_webmention(target) end |