Class: Google::Apis::AnalyticsreportingV4::PageviewData

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

Overview

Represents details collected when the visitor views a page.

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

Returns a new instance of PageviewData.



998
999
1000
# File 'generated/google/apis/analyticsreporting_v4/classes.rb', line 998

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

Instance Attribute Details

#page_pathString

The URL of the page that the visitor viewed. Corresponds to the JSON property pagePath

Returns:

  • (String)


991
992
993
# File 'generated/google/apis/analyticsreporting_v4/classes.rb', line 991

def page_path
  @page_path
end

#page_titleString

The title of the page that the visitor viewed. Corresponds to the JSON property pageTitle

Returns:

  • (String)


996
997
998
# File 'generated/google/apis/analyticsreporting_v4/classes.rb', line 996

def page_title
  @page_title
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1003
1004
1005
1006
# File 'generated/google/apis/analyticsreporting_v4/classes.rb', line 1003

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