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.
-
#amazon ⇒ Object
readonly
Returns the value of attribute amazon.
-
#booking ⇒ Object
readonly
Returns the value of attribute booking.
-
#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.
-
#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.
-
#search ⇒ Object
readonly
Returns the value of attribute search.
-
#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.
21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 |
# File 'lib/scrapio/client.rb', line 21 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) end |
Instance Attribute Details
#agoda ⇒ Object (readonly)
Returns the value of attribute agoda.
18 19 20 |
# File 'lib/scrapio/client.rb', line 18 def agoda @agoda end |
#amazon ⇒ Object (readonly)
Returns the value of attribute amazon.
18 19 20 |
# File 'lib/scrapio/client.rb', line 18 def amazon @amazon end |
#booking ⇒ Object (readonly)
Returns the value of attribute booking.
18 19 20 |
# File 'lib/scrapio/client.rb', line 18 def booking @booking end |
#crawl ⇒ Object (readonly)
Returns the value of attribute crawl.
18 19 20 |
# File 'lib/scrapio/client.rb', line 18 def crawl @crawl end |
#fast_search ⇒ Object (readonly)
Returns the value of attribute fast_search.
18 19 20 |
# File 'lib/scrapio/client.rb', line 18 def fast_search @fast_search end |
#fetch ⇒ Object (readonly)
Returns the value of attribute fetch.
18 19 20 |
# File 'lib/scrapio/client.rb', line 18 def fetch @fetch end |
#google ⇒ Object (readonly)
Returns the value of attribute google.
18 19 20 |
# File 'lib/scrapio/client.rb', line 18 def google @google end |
#interact ⇒ Object (readonly)
Returns the value of attribute interact.
18 19 20 |
# File 'lib/scrapio/client.rb', line 18 def interact @interact end |
#jobs ⇒ Object (readonly)
Returns the value of attribute jobs.
18 19 20 |
# File 'lib/scrapio/client.rb', line 18 def jobs @jobs end |
#map ⇒ Object (readonly)
Returns the value of attribute map.
18 19 20 |
# File 'lib/scrapio/client.rb', line 18 def map @map end |
#search ⇒ Object (readonly)
Returns the value of attribute search.
18 19 20 |
# File 'lib/scrapio/client.rb', line 18 def search @search end |
#walmart ⇒ Object (readonly)
Returns the value of attribute walmart.
18 19 20 |
# File 'lib/scrapio/client.rb', line 18 def walmart @walmart end |
#youtube ⇒ Object (readonly)
Returns the value of attribute youtube.
18 19 20 |
# File 'lib/scrapio/client.rb', line 18 def youtube @youtube end |