Class: TheTradeDeskAds::ApiResult

Inherits:
Object
  • Object
show all
Defined in:
lib/the_trade_desk_ads/api_result.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(results: results, result_count: result_count, total_filtered_count: total_filtered_count, total_unfiltered_count: total_unfiltered_count) ⇒ ApiResult

Returns a new instance of ApiResult.



6
7
8
9
10
11
12
13
14
# File 'lib/the_trade_desk_ads/api_result.rb', line 6

def initialize( results: results,
                result_count: result_count,
                total_filtered_count: total_filtered_count,
                total_unfiltered_count: total_unfiltered_count)
  @results = results || {}
  @result_count = result_count || 0
  @total_filtered_count = total_filtered_count || 0
  @total_unfiltered_count = total_unfiltered_count || 0
end

Instance Attribute Details

#result_countObject

Returns the value of attribute result_count.



4
5
6
# File 'lib/the_trade_desk_ads/api_result.rb', line 4

def result_count
  @result_count
end

#resultsObject

Returns the value of attribute results.



4
5
6
# File 'lib/the_trade_desk_ads/api_result.rb', line 4

def results
  @results
end

#total_filtered_countObject

Returns the value of attribute total_filtered_count.



4
5
6
# File 'lib/the_trade_desk_ads/api_result.rb', line 4

def total_filtered_count
  @total_filtered_count
end

#total_unfiltered_countObject

Returns the value of attribute total_unfiltered_count.



4
5
6
# File 'lib/the_trade_desk_ads/api_result.rb', line 4

def total_unfiltered_count
  @total_unfiltered_count
end