Class: Google::Apis::FirebasedynamiclinksV1::DeviceInfo

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

Overview

Signals associated with the device making the request.

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

Returns a new instance of DeviceInfo



305
306
307
# File 'generated/google/apis/firebasedynamiclinks_v1/classes.rb', line 305

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

Instance Attribute Details

#device_model_nameString

Device model name. Corresponds to the JSON property deviceModelName

Returns:

  • (String)


269
270
271
# File 'generated/google/apis/firebasedynamiclinks_v1/classes.rb', line 269

def device_model_name
  @device_model_name
end

#language_codeString

Device language code setting. Corresponds to the JSON property languageCode

Returns:

  • (String)


274
275
276
# File 'generated/google/apis/firebasedynamiclinks_v1/classes.rb', line 274

def language_code
  @language_code
end

#language_code_from_webviewString

Device language code setting obtained by executing JavaScript code in WebView. Corresponds to the JSON property languageCodeFromWebview

Returns:

  • (String)


280
281
282
# File 'generated/google/apis/firebasedynamiclinks_v1/classes.rb', line 280

def language_code_from_webview
  @language_code_from_webview
end

#language_code_rawString

Device language code raw setting. iOS does returns language code in different format than iOS WebView. For example WebView returns en_US, but iOS returns en-US. Field below will return raw value returned by iOS. Corresponds to the JSON property languageCodeRaw

Returns:

  • (String)


288
289
290
# File 'generated/google/apis/firebasedynamiclinks_v1/classes.rb', line 288

def language_code_raw
  @language_code_raw
end

#screen_resolution_heightFixnum

Device display resolution height. Corresponds to the JSON property screenResolutionHeight

Returns:

  • (Fixnum)


293
294
295
# File 'generated/google/apis/firebasedynamiclinks_v1/classes.rb', line 293

def screen_resolution_height
  @screen_resolution_height
end

#screen_resolution_widthFixnum

Device display resolution width. Corresponds to the JSON property screenResolutionWidth

Returns:

  • (Fixnum)


298
299
300
# File 'generated/google/apis/firebasedynamiclinks_v1/classes.rb', line 298

def screen_resolution_width
  @screen_resolution_width
end

#timezoneString

Device timezone setting. Corresponds to the JSON property timezone

Returns:

  • (String)


303
304
305
# File 'generated/google/apis/firebasedynamiclinks_v1/classes.rb', line 303

def timezone
  @timezone
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



310
311
312
313
314
315
316
317
318
# File 'generated/google/apis/firebasedynamiclinks_v1/classes.rb', line 310

def update!(**args)
  @device_model_name = args[:device_model_name] if args.key?(:device_model_name)
  @language_code = args[:language_code] if args.key?(:language_code)
  @language_code_from_webview = args[:language_code_from_webview] if args.key?(:language_code_from_webview)
  @language_code_raw = args[:language_code_raw] if args.key?(:language_code_raw)
  @screen_resolution_height = args[:screen_resolution_height] if args.key?(:screen_resolution_height)
  @screen_resolution_width = args[:screen_resolution_width] if args.key?(:screen_resolution_width)
  @timezone = args[:timezone] if args.key?(:timezone)
end