Class: Diffbot::Client
- Inherits:
-
Object
- Object
- Diffbot::Client
- Includes:
- Base
- Defined in:
- lib/diffbot_api/client.rb
Overview
Client fot the Diffbot API
Instance Method Summary collapse
-
#article(url) ⇒ Diffbot::Article
Instantiate an Article from a URL.
-
#initialize ⇒ Client
constructor
A new instance of Client.
Constructor Details
#initialize ⇒ Client
Returns a new instance of Client.
11 12 13 |
# File 'lib/diffbot_api/client.rb', line 11 def initialize validate_diffbot_token! end |
Instance Method Details
#article(url) ⇒ Diffbot::Article
Instantiate an Article from a URL
23 24 25 |
# File 'lib/diffbot_api/client.rb', line 23 def article(url) Diffbot::Article.new(url) end |