Class: Google::Apis::AdsenseplatformV1::Site
- Inherits:
-
Object
- Object
- Google::Apis::AdsenseplatformV1::Site
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/adsenseplatform_v1/classes.rb,
lib/google/apis/adsenseplatform_v1/representations.rb,
lib/google/apis/adsenseplatform_v1/representations.rb
Overview
Representation of a Site.
Instance Attribute Summary collapse
-
#domain ⇒ String
Domain/sub-domain of the site.
-
#name ⇒ String
Output only.
-
#state ⇒ String
Output only.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Site
constructor
A new instance of Site.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ Site
Returns a new instance of Site.
373 374 375 |
# File 'lib/google/apis/adsenseplatform_v1/classes.rb', line 373 def initialize(**args) update!(**args) end |
Instance Attribute Details
#domain ⇒ String
360 361 362 |
# File 'lib/google/apis/adsenseplatform_v1/classes.rb', line 360 def domain @domain end |
#name ⇒ String
Output only. Resource name of a site. Format: platforms/platform
/accounts/
account
/sites/site
Corresponds to the JSON property name
366 367 368 |
# File 'lib/google/apis/adsenseplatform_v1/classes.rb', line 366 def name @name end |
#state ⇒ String
Output only. State of a site.
Corresponds to the JSON property state
371 372 373 |
# File 'lib/google/apis/adsenseplatform_v1/classes.rb', line 371 def state @state end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
378 379 380 381 382 |
# File 'lib/google/apis/adsenseplatform_v1/classes.rb', line 378 def update!(**args) @domain = args[:domain] if args.key?(:domain) @name = args[:name] if args.key?(:name) @state = args[:state] if args.key?(:state) end |