Class: Courier::Models::Users::TokenAddSingleParams::Tracking

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/courier/models/users/token_add_single_params.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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(ip: nil, lat: nil, long: nil, os_version: nil) ⇒ Object

Tracking information about the device the token came from.

Parameters:

  • ip (String, nil) (defaults to: nil)

    The IP address of the device

  • lat (String, nil) (defaults to: nil)

    The latitude of the device

  • long (String, nil) (defaults to: nil)

    The longitude of the device

  • os_version (String, nil) (defaults to: nil)

    The operating system version



# File 'lib/courier/models/users/token_add_single_params.rb', line 174


Instance Attribute Details

#ipString?

The IP address of the device

Returns:

  • (String, nil)


154
# File 'lib/courier/models/users/token_add_single_params.rb', line 154

optional :ip, String, nil?: true

#latString?

The latitude of the device

Returns:

  • (String, nil)


160
# File 'lib/courier/models/users/token_add_single_params.rb', line 160

optional :lat, String, nil?: true

#longString?

The longitude of the device

Returns:

  • (String, nil)


166
# File 'lib/courier/models/users/token_add_single_params.rb', line 166

optional :long, String, nil?: true

#os_versionString?

The operating system version

Returns:

  • (String, nil)


172
# File 'lib/courier/models/users/token_add_single_params.rb', line 172

optional :os_version, String, nil?: true