Class: Google::Apis::BloggerV3::Pageviews

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

Defined Under Namespace

Classes: Count

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

Returns a new instance of Pageviews.



768
769
770
# File 'generated/google/apis/blogger_v3/classes.rb', line 768

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

Instance Attribute Details

#blog_idString

Blog Id. Corresponds to the JSON property blogId

Returns:

  • (String)


756
757
758
# File 'generated/google/apis/blogger_v3/classes.rb', line 756

def blog_id
  @blog_id
end

#countsArray<Google::Apis::BloggerV3::Pageviews::Count>

The container of posts in this blog. Corresponds to the JSON property counts



761
762
763
# File 'generated/google/apis/blogger_v3/classes.rb', line 761

def counts
  @counts
end

#kindString

The kind of this entry. Always blogger#page_views. Corresponds to the JSON property kind

Returns:

  • (String)


766
767
768
# File 'generated/google/apis/blogger_v3/classes.rb', line 766

def kind
  @kind
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



773
774
775
776
777
# File 'generated/google/apis/blogger_v3/classes.rb', line 773

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