Class: Google::Apis::AnalyticsreportingV4::ScreenviewData

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

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

Returns a new instance of ScreenviewData.


1507
1508
1509
# File 'generated/google/apis/analyticsreporting_v4/classes.rb', line 1507

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

Instance Attribute Details

#app_nameString

The application name. Corresponds to the JSON property appName

Returns:

  • (String)

1490
1491
1492
# File 'generated/google/apis/analyticsreporting_v4/classes.rb', line 1490

def app_name
  @app_name
end

#mobile_device_brandingString

Mobile manufacturer or branded name. Eg: "Google", "Apple" etc. Corresponds to the JSON property mobileDeviceBranding

Returns:

  • (String)

1495
1496
1497
# File 'generated/google/apis/analyticsreporting_v4/classes.rb', line 1495

def mobile_device_branding
  @mobile_device_branding
end

#mobile_device_modelString

Mobile device model. Eg: "Pixel", "iPhone" etc. Corresponds to the JSON property mobileDeviceModel

Returns:

  • (String)

1500
1501
1502
# File 'generated/google/apis/analyticsreporting_v4/classes.rb', line 1500

def mobile_device_model
  @mobile_device_model
end

#screen_nameString

The name of the screen. Corresponds to the JSON property screenName

Returns:

  • (String)

1505
1506
1507
# File 'generated/google/apis/analyticsreporting_v4/classes.rb', line 1505

def screen_name
  @screen_name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object


1512
1513
1514
1515
1516
1517
# File 'generated/google/apis/analyticsreporting_v4/classes.rb', line 1512

def update!(**args)
  @app_name = args[:app_name] if args.key?(:app_name)
  @mobile_device_branding = args[:mobile_device_branding] if args.key?(:mobile_device_branding)
  @mobile_device_model = args[:mobile_device_model] if args.key?(:mobile_device_model)
  @screen_name = args[:screen_name] if args.key?(:screen_name)
end