Class: Courier::Models::Users::UserToken::Device
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- Courier::Models::Users::UserToken::Device
- Defined in:
- lib/courier/models/users/user_token.rb,
sig/courier/models/users/user_token.rbs
Overview
Instance Attribute Summary collapse
-
#ad_id ⇒ String?
Id of the advertising identifier.
-
#app_id ⇒ String?
Id of the application the token is used for.
-
#device_id ⇒ String?
Id of the device the token is associated with.
-
#manufacturer ⇒ String?
The device manufacturer.
-
#model ⇒ String?
The device model.
-
#platform ⇒ String?
The device platform i.e.
Instance Method Summary collapse
-
#initialize ⇒ Device
constructor
A new instance of Device.
- #to_hash ⇒ { ad_id: String?, app_id: String?, device_id: String?, manufacturer: String?, model: String?, platform: String? }
Methods inherited from Internal::Type::BaseModel
==, #==, #[], coerce, #deconstruct_keys, #deep_to_h, dump, fields, hash, #hash, inherited, inspect, #inspect, known_fields, optional, recursively_to_h, required, #to_h, #to_json, #to_s, to_sorbet_type, #to_yaml
Methods included from Internal::Type::Converter
#coerce, coerce, #dump, dump, inspect, #inspect, meta_info, new_coerce_state, type_info
Methods included from Internal::Util::SorbetRuntimeSupport
#const_missing, #define_sorbet_constant!, #sorbet_constant_defined?, #to_sorbet_type, to_sorbet_type
Constructor Details
#initialize ⇒ Device
Returns a new instance of Device.
85 86 87 88 89 90 91 92 |
# File 'sig/courier/models/users/user_token.rbs', line 85
def initialize: (
?ad_id: String?,
?app_id: String?,
?device_id: String?,
?manufacturer: String?,
?model: String?,
?platform: String?
) -> void
|
Instance Attribute Details
#ad_id ⇒ String?
Id of the advertising identifier
82 |
# File 'lib/courier/models/users/user_token.rb', line 82 optional :ad_id, String, nil?: true |
#app_id ⇒ String?
Id of the application the token is used for
88 |
# File 'lib/courier/models/users/user_token.rb', line 88 optional :app_id, String, nil?: true |
#device_id ⇒ String?
Id of the device the token is associated with
94 |
# File 'lib/courier/models/users/user_token.rb', line 94 optional :device_id, String, nil?: true |
#manufacturer ⇒ String?
The device manufacturer
100 |
# File 'lib/courier/models/users/user_token.rb', line 100 optional :manufacturer, String, nil?: true |
#model ⇒ String?
The device model
106 |
# File 'lib/courier/models/users/user_token.rb', line 106 optional :model, String, nil?: true |
#platform ⇒ String?
The device platform i.e. android, ios, web
112 |
# File 'lib/courier/models/users/user_token.rb', line 112 optional :platform, String, nil?: true |
Instance Method Details
#to_hash ⇒ { ad_id: String?, app_id: String?, device_id: String?, manufacturer: String?, model: String?, platform: String? }
94 95 96 97 98 99 100 101 |
# File 'sig/courier/models/users/user_token.rbs', line 94
def to_hash: -> {
ad_id: String?,
app_id: String?,
device_id: String?,
manufacturer: String?,
model: String?,
platform: String?
}
|