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

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ScreenviewData

Returns a new instance of ScreenviewData.



1513
1514
1515
# File 'lib/google/apis/analyticsreporting_v4/classes.rb', line 1513

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

Instance Attribute Details

#app_nameString

The application name. Corresponds to the JSON property appName

Returns:

  • (String)


1496
1497
1498
# File 'lib/google/apis/analyticsreporting_v4/classes.rb', line 1496

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)


1501
1502
1503
# File 'lib/google/apis/analyticsreporting_v4/classes.rb', line 1501

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)


1506
1507
1508
# File 'lib/google/apis/analyticsreporting_v4/classes.rb', line 1506

def mobile_device_model
  @mobile_device_model
end

#screen_nameString

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

Returns:

  • (String)


1511
1512
1513
# File 'lib/google/apis/analyticsreporting_v4/classes.rb', line 1511

def screen_name
  @screen_name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1518
1519
1520
1521
1522
1523
# File 'lib/google/apis/analyticsreporting_v4/classes.rb', line 1518

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