Class: YahooGeminiClient::CampaignResponse
- Inherits:
-
BaseResponse
- Object
- BaseResponse
- YahooGeminiClient::CampaignResponse
- Defined in:
- lib/yahoo_gemini_client/responses/campaign_response.rb
Instance Attribute Summary collapse
-
#campaigns ⇒ Object
Returns the value of attribute campaigns.
-
#errors ⇒ Object
Returns the value of attribute errors.
-
#timestamp ⇒ Object
Returns the value of attribute timestamp.
Instance Method Summary collapse
-
#initialize(json_response) ⇒ CampaignResponse
constructor
A new instance of CampaignResponse.
Methods inherited from BaseResponse
Constructor Details
#initialize(json_response) ⇒ CampaignResponse
Returns a new instance of CampaignResponse.
5 6 7 8 9 10 11 12 |
# File 'lib/yahoo_gemini_client/responses/campaign_response.rb', line 5 def initialize(json_response) @errors = json_response[:errors] = json_response[:timestamp] @campaigns = [] if json_response[:response] build_campaigns(json_response[:response]) end end |
Instance Attribute Details
#campaigns ⇒ Object
Returns the value of attribute campaigns.
3 4 5 |
# File 'lib/yahoo_gemini_client/responses/campaign_response.rb', line 3 def campaigns @campaigns end |
#errors ⇒ Object
Returns the value of attribute errors.
3 4 5 |
# File 'lib/yahoo_gemini_client/responses/campaign_response.rb', line 3 def errors @errors end |
#timestamp ⇒ Object
Returns the value of attribute timestamp.
3 4 5 |
# File 'lib/yahoo_gemini_client/responses/campaign_response.rb', line 3 def end |