class YahooGeminiClient::AdvertisersResponse

Attributes

advertisers[RW]
errors[RW]
timestamp[RW]

Public Class Methods

new(json_response) click to toggle source
# File lib/yahoo_gemini_client/responses/advertisers_response.rb, line 5
def initialize(json_response)
  @errors = json_response[:errors]
  @timestamp = json_response[:timestamp]
  @advertisers = json_response[:response].map do |advertiser_hash|
    Advertiser.new(advertiser_hash)
  end
end