Module: DiffbotSimple::V2::ApiHelper
- Includes:
- Symbolize
- Defined in:
- lib/diffbot_simple/v2/api_helper.rb
Overview
Complies to www.diffbot.com/dev/docs/crawl/
Instance Method Summary collapse
- #initialize(api_client: nil, token: nil) ⇒ Object
- #post_initialize ⇒ Object
- #to_crawl_api_url ⇒ Object
Instance Method Details
#initialize(api_client: nil, token: nil) ⇒ Object
5 6 7 8 9 |
# File 'lib/diffbot_simple/v2/api_helper.rb', line 5 def initialize api_client: nil, token: nil @api_client = api_client @token = token post_initialize end |
#post_initialize ⇒ Object
10 11 12 |
# File 'lib/diffbot_simple/v2/api_helper.rb', line 10 def post_initialize raise "Must overload to set api path" end |
#to_crawl_api_url ⇒ Object
13 14 15 |
# File 'lib/diffbot_simple/v2/api_helper.rb', line 13 def to_crawl_api_url "#{api_client.site}#{api}" end |