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