Class: YahooGeminiClient::AdGroupResponse
- Inherits:
-
BaseResponse
- Object
- BaseResponse
- YahooGeminiClient::AdGroupResponse
- Defined in:
- lib/yahoo_gemini_client/responses/ad_group_response.rb
Instance Attribute Summary collapse
-
#ad_group ⇒ Object
Returns the value of attribute ad_group.
-
#errors ⇒ Object
Returns the value of attribute errors.
-
#timestamp ⇒ Object
Returns the value of attribute timestamp.
Instance Method Summary collapse
-
#initialize(json_response) ⇒ AdGroupResponse
constructor
A new instance of AdGroupResponse.
Methods inherited from BaseResponse
Constructor Details
#initialize(json_response) ⇒ AdGroupResponse
5 6 7 8 9 |
# File 'lib/yahoo_gemini_client/responses/ad_group_response.rb', line 5 def initialize(json_response) @errors = json_response[:errors] = json_response[:timestamp] @ad_group = AdGroup.new(json_response[:response]) end |
Instance Attribute Details
#ad_group ⇒ Object
Returns the value of attribute ad_group.
3 4 5 |
# File 'lib/yahoo_gemini_client/responses/ad_group_response.rb', line 3 def ad_group @ad_group end |
#errors ⇒ Object
Returns the value of attribute errors.
3 4 5 |
# File 'lib/yahoo_gemini_client/responses/ad_group_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/ad_group_response.rb', line 3 def end |