Class: Datashake::ReviewScraper::V2::Profiles::Info
- Inherits:
-
Object
- Object
- Datashake::ReviewScraper::V2::Profiles::Info
- Defined in:
- lib/datashake-ruby-sdk/review_scraper/v2/profiles/info.rb
Constant Summary collapse
- PATH =
"api/v2/profiles/info"
Instance Method Summary collapse
- #fetch ⇒ Object
-
#initialize(version) ⇒ Info
constructor
A new instance of Info.
- #job_id(job_id) ⇒ Object
Constructor Details
#initialize(version) ⇒ Info
Returns a new instance of Info.
10 11 12 13 |
# File 'lib/datashake-ruby-sdk/review_scraper/v2/profiles/info.rb', line 10 def initialize(version) @version = version @params = {} end |
Instance Method Details
#fetch ⇒ Object
21 22 23 24 25 |
# File 'lib/datashake-ruby-sdk/review_scraper/v2/profiles/info.rb', line 21 def fetch response = version.fetch(method: :get, path: PATH, params: params) Datashake::ReviewScraper::V2::ProfileInstance.new(response) end |
#job_id(job_id) ⇒ Object
15 16 17 18 19 |
# File 'lib/datashake-ruby-sdk/review_scraper/v2/profiles/info.rb', line 15 def job_id(job_id) @params[:job_id] = job_id self end |