Class: Google::Apis::AdsenseV1_4::SavedReport

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

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ SavedReport

Returns a new instance of SavedReport.



1158
1159
1160
# File 'generated/google/apis/adsense_v1_4/classes.rb', line 1158

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

Instance Attribute Details

#idString

Unique identifier of this saved report. Corresponds to the JSON property id

Returns:

  • (String)


1146
1147
1148
# File 'generated/google/apis/adsense_v1_4/classes.rb', line 1146

def id
  @id
end

#kindString

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

Returns:

  • (String)


1151
1152
1153
# File 'generated/google/apis/adsense_v1_4/classes.rb', line 1151

def kind
  @kind
end

#nameString

This saved report's name. Corresponds to the JSON property name

Returns:

  • (String)


1156
1157
1158
# File 'generated/google/apis/adsense_v1_4/classes.rb', line 1156

def name
  @name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1163
1164
1165
1166
1167
# File 'generated/google/apis/adsense_v1_4/classes.rb', line 1163

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