Class: YahooGeminiClient::CustomReportResponse
- Inherits:
-
BaseResponse
- Object
- BaseResponse
- YahooGeminiClient::CustomReportResponse
- Defined in:
- lib/yahoo_gemini_client/responses/custom_report_response.rb
Instance Attribute Summary collapse
-
#csv_url ⇒ Object
Returns the value of attribute csv_url.
-
#errors ⇒ Object
Returns the value of attribute errors.
-
#job_id ⇒ Object
Returns the value of attribute job_id.
-
#status ⇒ Object
Returns the value of attribute status.
-
#timestamp ⇒ Object
Returns the value of attribute timestamp.
Instance Method Summary collapse
- #completed? ⇒ Boolean
-
#initialize(json_response) ⇒ CustomReportResponse
constructor
A new instance of CustomReportResponse.
Methods inherited from BaseResponse
Constructor Details
#initialize(json_response) ⇒ CustomReportResponse
Returns a new instance of CustomReportResponse.
5 6 7 8 9 10 11 12 13 |
# File 'lib/yahoo_gemini_client/responses/custom_report_response.rb', line 5 def initialize(json_response) @errors = json_response[:errors] = 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 |
Instance Attribute Details
#csv_url ⇒ Object
Returns the value of attribute csv_url.
3 4 5 |
# File 'lib/yahoo_gemini_client/responses/custom_report_response.rb', line 3 def csv_url @csv_url end |
#errors ⇒ Object
Returns the value of attribute errors.
3 4 5 |
# File 'lib/yahoo_gemini_client/responses/custom_report_response.rb', line 3 def errors @errors end |
#job_id ⇒ Object
Returns the value of attribute job_id.
3 4 5 |
# File 'lib/yahoo_gemini_client/responses/custom_report_response.rb', line 3 def job_id @job_id end |
#status ⇒ Object
Returns the value of attribute status.
3 4 5 |
# File 'lib/yahoo_gemini_client/responses/custom_report_response.rb', line 3 def status @status end |
#timestamp ⇒ Object
Returns the value of attribute timestamp.
3 4 5 |
# File 'lib/yahoo_gemini_client/responses/custom_report_response.rb', line 3 def end |
Instance Method Details
#completed? ⇒ Boolean
15 16 17 |
# File 'lib/yahoo_gemini_client/responses/custom_report_response.rb', line 15 def completed? @status == "completed" end |