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

Constructor Details

#initialize(**args) ⇒ PageviewData

Returns a new instance of PageviewData.



959
960
961
# File 'generated/google/apis/analyticsreporting_v4/classes.rb', line 959

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)


952
953
954
# File 'generated/google/apis/analyticsreporting_v4/classes.rb', line 952

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)


957
958
959
# File 'generated/google/apis/analyticsreporting_v4/classes.rb', line 957

def page_title
  @page_title
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



964
965
966
967
# File 'generated/google/apis/analyticsreporting_v4/classes.rb', line 964

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