Class: Google::Apis::AdsenseplatformV1::Site

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

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

#domainString

Domain/sub-domain of the site. Must be a valid domain complying with RFC 1035 and formatted as punycode RFC 3492 in case the domain contains unicode characters. Corresponds to the JSON property domain

Returns:

  • (String)


360
361
362
# File 'lib/google/apis/adsenseplatform_v1/classes.rb', line 360

def domain
  @domain
end

#nameString

Output only. Resource name of a site. Format: platforms/platform/accounts/ account/sites/site Corresponds to the JSON property name

Returns:

  • (String)


366
367
368
# File 'lib/google/apis/adsenseplatform_v1/classes.rb', line 366

def name
  @name
end

#stateString

Output only. State of a site. Corresponds to the JSON property state

Returns:

  • (String)


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