Class: Google::Apis::WebmastersV3::WmxSitemapContent

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

Overview

Information about the various content types in the sitemap.

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) ⇒ WmxSitemapContent

Returns a new instance of WmxSitemapContent.



391
392
393
# File 'generated/google/apis/webmasters_v3/classes.rb', line 391

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

Instance Attribute Details

#indexedFixnum

The number of URLs from the sitemap that were indexed (of the content type). Corresponds to the JSON property indexed

Returns:

  • (Fixnum)


379
380
381
# File 'generated/google/apis/webmasters_v3/classes.rb', line 379

def indexed
  @indexed
end

#submittedFixnum

The number of URLs in the sitemap (of the content type). Corresponds to the JSON property submitted

Returns:

  • (Fixnum)


384
385
386
# File 'generated/google/apis/webmasters_v3/classes.rb', line 384

def 
  @submitted
end

#typeString

The specific type of content in this sitemap. For example: web. Corresponds to the JSON property type

Returns:

  • (String)


389
390
391
# File 'generated/google/apis/webmasters_v3/classes.rb', line 389

def type
  @type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



396
397
398
399
400
# File 'generated/google/apis/webmasters_v3/classes.rb', line 396

def update!(**args)
  @indexed = args[:indexed] if args.key?(:indexed)
  @submitted = args[:submitted] if args.key?(:submitted)
  @type = args[:type] if args.key?(:type)
end