Class: Datashake::ReviewScraper::V2::Profiles::Info

Inherits:
Object
  • Object
show all
Defined in:
lib/datashake-ruby-sdk/review_scraper/v2/profiles/info.rb

Constant Summary collapse

PATH =
"api/v2/profiles/info"

Instance Method Summary collapse

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

#fetchObject



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