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



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

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)


988
989
990
# File 'generated/google/apis/analyticsreporting_v4/classes.rb', line 988

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)


993
994
995
# File 'generated/google/apis/analyticsreporting_v4/classes.rb', line 993

def page_title
  @page_title
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1000
1001
1002
1003
# File 'generated/google/apis/analyticsreporting_v4/classes.rb', line 1000

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