Class: Google::Apis::FirebasedynamiclinksV1::DeviceInfo
- Inherits:
-
Object
- Object
- Google::Apis::FirebasedynamiclinksV1::DeviceInfo
- 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
-
#device_model_name ⇒ String
Device model name.
-
#language_code ⇒ String
Device language code setting.
-
#language_code_from_webview ⇒ String
Device language code setting obtained by executing JavaScript code in WebView.
-
#language_code_raw ⇒ String
Device language code raw setting.
-
#screen_resolution_height ⇒ Fixnum
Device display resolution height.
-
#screen_resolution_width ⇒ Fixnum
Device display resolution width.
-
#timezone ⇒ String
Device timezone setting.
Instance Method Summary collapse
-
#initialize(**args) ⇒ DeviceInfo
constructor
A new instance of DeviceInfo.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ DeviceInfo
Returns a new instance of DeviceInfo
218 219 220 |
# File 'generated/google/apis/firebasedynamiclinks_v1/classes.rb', line 218 def initialize(**args) update!(**args) end |
Instance Attribute Details
#device_model_name ⇒ String
Device model name.
Corresponds to the JSON property deviceModelName
182 183 184 |
# File 'generated/google/apis/firebasedynamiclinks_v1/classes.rb', line 182 def device_model_name @device_model_name end |
#language_code ⇒ String
Device language code setting.
Corresponds to the JSON property languageCode
187 188 189 |
# File 'generated/google/apis/firebasedynamiclinks_v1/classes.rb', line 187 def language_code @language_code end |
#language_code_from_webview ⇒ String
Device language code setting obtained by executing JavaScript code in
WebView.
Corresponds to the JSON property languageCodeFromWebview
193 194 195 |
# File 'generated/google/apis/firebasedynamiclinks_v1/classes.rb', line 193 def language_code_from_webview @language_code_from_webview end |
#language_code_raw ⇒ String
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
201 202 203 |
# File 'generated/google/apis/firebasedynamiclinks_v1/classes.rb', line 201 def language_code_raw @language_code_raw end |
#screen_resolution_height ⇒ Fixnum
Device display resolution height.
Corresponds to the JSON property screenResolutionHeight
206 207 208 |
# File 'generated/google/apis/firebasedynamiclinks_v1/classes.rb', line 206 def screen_resolution_height @screen_resolution_height end |
#screen_resolution_width ⇒ Fixnum
Device display resolution width.
Corresponds to the JSON property screenResolutionWidth
211 212 213 |
# File 'generated/google/apis/firebasedynamiclinks_v1/classes.rb', line 211 def screen_resolution_width @screen_resolution_width end |
#timezone ⇒ String
Device timezone setting.
Corresponds to the JSON property timezone
216 217 218 |
# File 'generated/google/apis/firebasedynamiclinks_v1/classes.rb', line 216 def timezone @timezone end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
223 224 225 226 227 228 229 230 231 |
# File 'generated/google/apis/firebasedynamiclinks_v1/classes.rb', line 223 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 |