Class: TheTradeDeskAds::ApiResult
- Inherits:
-
Object
- Object
- TheTradeDeskAds::ApiResult
- Defined in:
- lib/the_trade_desk_ads/api_result.rb
Instance Attribute Summary collapse
-
#result_count ⇒ Object
Returns the value of attribute result_count.
-
#results ⇒ Object
Returns the value of attribute results.
-
#total_filtered_count ⇒ Object
Returns the value of attribute total_filtered_count.
-
#total_unfiltered_count ⇒ Object
Returns the value of attribute total_unfiltered_count.
Instance Method Summary collapse
-
#initialize(results: results, result_count: result_count, total_filtered_count: total_filtered_count, total_unfiltered_count: total_unfiltered_count) ⇒ ApiResult
constructor
A new instance of ApiResult.
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_count ⇒ Object
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 |
#results ⇒ Object
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_count ⇒ Object
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_count ⇒ Object
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 |