Class: Google::Apis::AdsenseV2::SavedReport

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

Overview

Representation of a saved report.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ SavedReport

Returns a new instance of SavedReport.



979
980
981
# File 'lib/google/apis/adsense_v2/classes.rb', line 979

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

Instance Attribute Details

#nameString

Output only. Resource name of the report. Format: accounts/account/reports/ report Corresponds to the JSON property name

Returns:

  • (String)


972
973
974
# File 'lib/google/apis/adsense_v2/classes.rb', line 972

def name
  @name
end

#titleString

Report title as specified by publisher. Corresponds to the JSON property title

Returns:

  • (String)


977
978
979
# File 'lib/google/apis/adsense_v2/classes.rb', line 977

def title
  @title
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



984
985
986
987
# File 'lib/google/apis/adsense_v2/classes.rb', line 984

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