class YahooGeminiClient::CustomReportResponse
Attributes
csv_url[RW]
errors[RW]
job_id[RW]
status[RW]
timestamp[RW]
Public Class Methods
new(json_response)
click to toggle source
# File lib/yahoo_gemini_client/responses/custom_report_response.rb, line 5 def initialize(json_response) @errors = json_response[:errors] @timestamp = json_response[:timestamp] if json_response[:response] @job_id = json_response[:response][:jobId] @status = json_response[:response][:status] @csv_url = json_response[:response][:jobResponse] end end
Public Instance Methods
completed?()
click to toggle source
# File lib/yahoo_gemini_client/responses/custom_report_response.rb, line 15 def completed? @status == "completed" end