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/version.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
Constant Summary collapse
- VERSION =
"8.0.0"
Class Method Summary collapse
-
.mentioned_urls(url) ⇒ Array<String>
Retrieve unique URLs mentioned by the provided URL.
-
.send_webmention(source, target, vouch: nil) ⇒ Webmention::Response, Webmention::ErrorResponse
Send a webmention from a source URL to a target URL.
-
.send_webmentions(source, *targets, vouch: nil) ⇒ Array<Webmention::Response, Webmention::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.
36 37 38 |
# File 'lib/webmention.rb', line 36 def self.mentioned_urls(url) Client.new(url).mentioned_urls end |
.send_webmention(source, target, vouch: nil) ⇒ Webmention::Response, Webmention::ErrorResponse
Send a webmention from a source URL to a target URL.
61 62 63 |
# File 'lib/webmention.rb', line 61 def self.send_webmention(source, target, vouch: nil) Client.new(source, vouch: vouch).send_webmention(target) end |
.send_webmentions(source, *targets, vouch: nil) ⇒ Array<Webmention::Response, Webmention::ErrorResponse>
Send webmentions from a source URL to multiple target URLs.
86 87 88 |
# File 'lib/webmention.rb', line 86 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.
97 98 99 |
# File 'lib/webmention.rb', line 97 def self.verify_webmention(source, target, vouch: nil) Client.new(source, vouch: vouch).verify_webmention(target) end |