Class: Scrapio::Client
- Inherits:
-
Object
- Object
- Scrapio::Client
- Defined in:
- lib/scrapio/client.rb
Instance Attribute Summary collapse
-
#agoda ⇒ Object
readonly
Returns the value of attribute agoda.
-
#airbnb ⇒ Object
readonly
Returns the value of attribute airbnb.
-
#amazon ⇒ Object
readonly
Returns the value of attribute amazon.
-
#apple_app_store ⇒ Object
readonly
Returns the value of attribute apple_app_store.
-
#autotrader ⇒ Object
readonly
Returns the value of attribute autotrader.
-
#bing ⇒ Object
readonly
Returns the value of attribute bing.
-
#booking ⇒ Object
readonly
Returns the value of attribute booking.
-
#chatgpt ⇒ Object
readonly
Returns the value of attribute chatgpt.
-
#crawl ⇒ Object
readonly
Returns the value of attribute crawl.
-
#fast_search ⇒ Object
readonly
Returns the value of attribute fast_search.
-
#fetch ⇒ Object
readonly
Returns the value of attribute fetch.
-
#gemini ⇒ Object
readonly
Returns the value of attribute gemini.
-
#google ⇒ Object
readonly
Returns the value of attribute google.
-
#interact ⇒ Object
readonly
Returns the value of attribute interact.
-
#jobs ⇒ Object
readonly
Returns the value of attribute jobs.
-
#map ⇒ Object
readonly
Returns the value of attribute map.
-
#perplexity ⇒ Object
readonly
Returns the value of attribute perplexity.
-
#reddit ⇒ Object
readonly
Returns the value of attribute reddit.
-
#search ⇒ Object
readonly
Returns the value of attribute search.
-
#target ⇒ Object
readonly
Returns the value of attribute target.
-
#tiktok ⇒ Object
readonly
Returns the value of attribute tiktok.
-
#walmart ⇒ Object
readonly
Returns the value of attribute walmart.
-
#youtube ⇒ Object
readonly
Returns the value of attribute youtube.
Instance Method Summary collapse
-
#initialize(api_key, base_url: HttpClient::DEFAULT_BASE_URL, timeout: HttpClient::DEFAULT_TIMEOUT) ⇒ Client
constructor
A new instance of Client.
Constructor Details
#initialize(api_key, base_url: HttpClient::DEFAULT_BASE_URL, timeout: HttpClient::DEFAULT_TIMEOUT) ⇒ Client
Returns a new instance of Client.
32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 |
# File 'lib/scrapio/client.rb', line 32 def initialize(api_key, base_url: HttpClient::DEFAULT_BASE_URL, timeout: HttpClient::DEFAULT_TIMEOUT) http = HttpClient.new(api_key, base_url: base_url, timeout: timeout) @fetch = Resources::Fetch.new(http) @google = Resources::Google.new(http) @amazon = Resources::Amazon.new(http) @walmart = Resources::Walmart.new(http) @youtube = Resources::YouTube.new(http) @jobs = Resources::Jobs.new(http) @crawl = Resources::Crawl.new(http) @interact = Resources::Interact.new(http) @fast_search = Resources::FastSearch.new(http) @search = Resources::Search.new(http) @map = Resources::Map.new(http) @booking = Resources::Booking.new(http) @agoda = Resources::Agoda.new(http) @airbnb = Resources::Airbnb.new(http) @autotrader = Resources::Autotrader.new(http) @chatgpt = Resources::Chatgpt.new(http) @perplexity = Resources::Perplexity.new(http) @gemini = Resources::Gemini.new(http) @bing = Resources::Bing.new(http) @reddit = Resources::Reddit.new(http) @tiktok = Resources::TikTok.new(http) @target = Resources::Target.new(http) @apple_app_store = Resources::AppleAppStore.new(http) end |
Instance Attribute Details
#agoda ⇒ Object (readonly)
Returns the value of attribute agoda.
28 29 30 |
# File 'lib/scrapio/client.rb', line 28 def agoda @agoda end |
#airbnb ⇒ Object (readonly)
Returns the value of attribute airbnb.
28 29 30 |
# File 'lib/scrapio/client.rb', line 28 def airbnb @airbnb end |
#amazon ⇒ Object (readonly)
Returns the value of attribute amazon.
28 29 30 |
# File 'lib/scrapio/client.rb', line 28 def amazon @amazon end |
#apple_app_store ⇒ Object (readonly)
Returns the value of attribute apple_app_store.
28 29 30 |
# File 'lib/scrapio/client.rb', line 28 def apple_app_store @apple_app_store end |
#autotrader ⇒ Object (readonly)
Returns the value of attribute autotrader.
28 29 30 |
# File 'lib/scrapio/client.rb', line 28 def autotrader @autotrader end |
#bing ⇒ Object (readonly)
Returns the value of attribute bing.
28 29 30 |
# File 'lib/scrapio/client.rb', line 28 def bing @bing end |
#booking ⇒ Object (readonly)
Returns the value of attribute booking.
28 29 30 |
# File 'lib/scrapio/client.rb', line 28 def booking @booking end |
#chatgpt ⇒ Object (readonly)
Returns the value of attribute chatgpt.
28 29 30 |
# File 'lib/scrapio/client.rb', line 28 def chatgpt @chatgpt end |
#crawl ⇒ Object (readonly)
Returns the value of attribute crawl.
28 29 30 |
# File 'lib/scrapio/client.rb', line 28 def crawl @crawl end |
#fast_search ⇒ Object (readonly)
Returns the value of attribute fast_search.
28 29 30 |
# File 'lib/scrapio/client.rb', line 28 def fast_search @fast_search end |
#fetch ⇒ Object (readonly)
Returns the value of attribute fetch.
28 29 30 |
# File 'lib/scrapio/client.rb', line 28 def fetch @fetch end |
#gemini ⇒ Object (readonly)
Returns the value of attribute gemini.
28 29 30 |
# File 'lib/scrapio/client.rb', line 28 def gemini @gemini end |
#google ⇒ Object (readonly)
Returns the value of attribute google.
28 29 30 |
# File 'lib/scrapio/client.rb', line 28 def google @google end |
#interact ⇒ Object (readonly)
Returns the value of attribute interact.
28 29 30 |
# File 'lib/scrapio/client.rb', line 28 def interact @interact end |
#jobs ⇒ Object (readonly)
Returns the value of attribute jobs.
28 29 30 |
# File 'lib/scrapio/client.rb', line 28 def jobs @jobs end |
#map ⇒ Object (readonly)
Returns the value of attribute map.
28 29 30 |
# File 'lib/scrapio/client.rb', line 28 def map @map end |
#perplexity ⇒ Object (readonly)
Returns the value of attribute perplexity.
28 29 30 |
# File 'lib/scrapio/client.rb', line 28 def perplexity @perplexity end |
#reddit ⇒ Object (readonly)
Returns the value of attribute reddit.
28 29 30 |
# File 'lib/scrapio/client.rb', line 28 def reddit @reddit end |
#search ⇒ Object (readonly)
Returns the value of attribute search.
28 29 30 |
# File 'lib/scrapio/client.rb', line 28 def search @search end |
#target ⇒ Object (readonly)
Returns the value of attribute target.
28 29 30 |
# File 'lib/scrapio/client.rb', line 28 def target @target end |
#tiktok ⇒ Object (readonly)
Returns the value of attribute tiktok.
28 29 30 |
# File 'lib/scrapio/client.rb', line 28 def tiktok @tiktok end |
#walmart ⇒ Object (readonly)
Returns the value of attribute walmart.
28 29 30 |
# File 'lib/scrapio/client.rb', line 28 def walmart @walmart end |
#youtube ⇒ Object (readonly)
Returns the value of attribute youtube.
28 29 30 |
# File 'lib/scrapio/client.rb', line 28 def youtube @youtube end |