class Diffbot::Client
Public Class Methods
new()
click to toggle source
# File lib/diffbot_api/client.rb, line 11 def initialize validate_diffbot_token! end
Public Instance Methods
article(url)
click to toggle source
Instantiate an Article
from a URL
@param url [String] Specify the target article url @return [Diffbot::Article] @see www.diffbot.com/products/automatic/article/ @example Fetch an article
client = Diffbot::Client.new client.article "www.example.com/some-url"
# File lib/diffbot_api/client.rb, line 23 def article(url) Diffbot::Article.new(url) end