Class: Google::Apis::FirebasecrashlyticsV1alpha::OperatingSystem

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

Overview

Mobile device operating system metadata.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ OperatingSystem

Returns a new instance of OperatingSystem.



1150
1151
1152
# File 'lib/google/apis/firebasecrashlytics_v1alpha/classes.rb', line 1150

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

Instance Attribute Details

#device_typeString

The device category (mobile, tablet, desktop). Corresponds to the JSON property deviceType

Returns:

  • (String)


1122
1123
1124
# File 'lib/google/apis/firebasecrashlytics_v1alpha/classes.rb', line 1122

def device_type
  @device_type
end

#display_nameString

Name and version number. Formatted to be suitable for passing to OperatingSystemFilter. Corresponds to the JSON property displayName

Returns:

  • (String)


1128
1129
1130
# File 'lib/google/apis/firebasecrashlytics_v1alpha/classes.rb', line 1128

def display_name
  @display_name
end

#display_versionString

Operating system display version number. Corresponds to the JSON property displayVersion

Returns:

  • (String)


1133
1134
1135
# File 'lib/google/apis/firebasecrashlytics_v1alpha/classes.rb', line 1133

def display_version
  @display_version
end

#modification_stateString

Indicates if the OS has been modified or "jailbroken". Corresponds to the JSON property modificationState

Returns:

  • (String)


1138
1139
1140
# File 'lib/google/apis/firebasecrashlytics_v1alpha/classes.rb', line 1138

def modification_state
  @modification_state
end

#osString

Operating system name. Corresponds to the JSON property os

Returns:

  • (String)


1143
1144
1145
# File 'lib/google/apis/firebasecrashlytics_v1alpha/classes.rb', line 1143

def os
  @os
end

#typeString

The OS type on Apple platforms (iOS, iPadOS, etc.). Corresponds to the JSON property type

Returns:

  • (String)


1148
1149
1150
# File 'lib/google/apis/firebasecrashlytics_v1alpha/classes.rb', line 1148

def type
  @type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1155
1156
1157
1158
1159
1160
1161
1162
# File 'lib/google/apis/firebasecrashlytics_v1alpha/classes.rb', line 1155

def update!(**args)
  @device_type = args[:device_type] if args.key?(:device_type)
  @display_name = args[:display_name] if args.key?(:display_name)
  @display_version = args[:display_version] if args.key?(:display_version)
  @modification_state = args[:modification_state] if args.key?(:modification_state)
  @os = args[:os] if args.key?(:os)
  @type = args[:type] if args.key?(:type)
end