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.
-
#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.
31 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 |
# File 'lib/scrapio/client.rb', line 31 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) @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.
27 28 29 |
# File 'lib/scrapio/client.rb', line 27 def agoda @agoda end |
#airbnb ⇒ Object (readonly)
Returns the value of attribute airbnb.
27 28 29 |
# File 'lib/scrapio/client.rb', line 27 def airbnb @airbnb end |
#amazon ⇒ Object (readonly)
Returns the value of attribute amazon.
27 28 29 |
# File 'lib/scrapio/client.rb', line 27 def amazon @amazon end |
#apple_app_store ⇒ Object (readonly)
Returns the value of attribute apple_app_store.
27 28 29 |
# File 'lib/scrapio/client.rb', line 27 def apple_app_store @apple_app_store end |
#bing ⇒ Object (readonly)
Returns the value of attribute bing.
27 28 29 |
# File 'lib/scrapio/client.rb', line 27 def bing @bing end |
#booking ⇒ Object (readonly)
Returns the value of attribute booking.
27 28 29 |
# File 'lib/scrapio/client.rb', line 27 def booking @booking end |
#chatgpt ⇒ Object (readonly)
Returns the value of attribute chatgpt.
27 28 29 |
# File 'lib/scrapio/client.rb', line 27 def chatgpt @chatgpt end |
#crawl ⇒ Object (readonly)
Returns the value of attribute crawl.
27 28 29 |
# File 'lib/scrapio/client.rb', line 27 def crawl @crawl end |
#fast_search ⇒ Object (readonly)
Returns the value of attribute fast_search.
27 28 29 |
# File 'lib/scrapio/client.rb', line 27 def fast_search @fast_search end |
#fetch ⇒ Object (readonly)
Returns the value of attribute fetch.
27 28 29 |
# File 'lib/scrapio/client.rb', line 27 def fetch @fetch end |
#gemini ⇒ Object (readonly)
Returns the value of attribute gemini.
27 28 29 |
# File 'lib/scrapio/client.rb', line 27 def gemini @gemini end |
#google ⇒ Object (readonly)
Returns the value of attribute google.
27 28 29 |
# File 'lib/scrapio/client.rb', line 27 def google @google end |
#interact ⇒ Object (readonly)
Returns the value of attribute interact.
27 28 29 |
# File 'lib/scrapio/client.rb', line 27 def interact @interact end |
#jobs ⇒ Object (readonly)
Returns the value of attribute jobs.
27 28 29 |
# File 'lib/scrapio/client.rb', line 27 def jobs @jobs end |
#map ⇒ Object (readonly)
Returns the value of attribute map.
27 28 29 |
# File 'lib/scrapio/client.rb', line 27 def map @map end |
#perplexity ⇒ Object (readonly)
Returns the value of attribute perplexity.
27 28 29 |
# File 'lib/scrapio/client.rb', line 27 def perplexity @perplexity end |
#reddit ⇒ Object (readonly)
Returns the value of attribute reddit.
27 28 29 |
# File 'lib/scrapio/client.rb', line 27 def reddit @reddit end |
#search ⇒ Object (readonly)
Returns the value of attribute search.
27 28 29 |
# File 'lib/scrapio/client.rb', line 27 def search @search end |
#target ⇒ Object (readonly)
Returns the value of attribute target.
27 28 29 |
# File 'lib/scrapio/client.rb', line 27 def target @target end |
#tiktok ⇒ Object (readonly)
Returns the value of attribute tiktok.
27 28 29 |
# File 'lib/scrapio/client.rb', line 27 def tiktok @tiktok end |
#walmart ⇒ Object (readonly)
Returns the value of attribute walmart.
27 28 29 |
# File 'lib/scrapio/client.rb', line 27 def walmart @walmart end |
#youtube ⇒ Object (readonly)
Returns the value of attribute youtube.
27 28 29 |
# File 'lib/scrapio/client.rb', line 27 def youtube @youtube end |