Class: Google::Apis::AdsenseV1_4::Alerts

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Alerts

Returns a new instance of Alerts.



780
781
782
# File 'generated/google/apis/adsense_v1_4/classes.rb', line 780

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

Instance Attribute Details

#itemsArray<Google::Apis::AdsenseV1_4::Alert>

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



773
774
775
# File 'generated/google/apis/adsense_v1_4/classes.rb', line 773

def items
  @items
end

#kindString

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

Returns:

  • (String)


778
779
780
# File 'generated/google/apis/adsense_v1_4/classes.rb', line 778

def kind
  @kind
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



785
786
787
788
# File 'generated/google/apis/adsense_v1_4/classes.rb', line 785

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