Class: Google::Apis::AdexchangesellerV1_1::PreferredDeals

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/adexchangeseller_v1_1/classes.rb,
generated/google/apis/adexchangeseller_v1_1/representations.rb,
generated/google/apis/adexchangeseller_v1_1/representations.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ PreferredDeals

Returns a new instance of PreferredDeals



528
529
530
# File 'generated/google/apis/adexchangeseller_v1_1/classes.rb', line 528

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#itemsArray<Google::Apis::AdexchangesellerV1_1::PreferredDeal>

The preferred deals returned in this list response. Corresponds to the JSON property items



521
522
523
# File 'generated/google/apis/adexchangeseller_v1_1/classes.rb', line 521

def items
  @items
end

#kindString

Kind of list this is, in this case adexchangeseller#preferredDeals. Corresponds to the JSON property kind

Returns:

  • (String)


526
527
528
# File 'generated/google/apis/adexchangeseller_v1_1/classes.rb', line 526

def kind
  @kind
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



533
534
535
536
# File 'generated/google/apis/adexchangeseller_v1_1/classes.rb', line 533

def update!(**args)
  @items = args[:items] if args.key?(:items)
  @kind = args[:kind] if args.key?(:kind)
end