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

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

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

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

  • ip: (String, nil) (defaults to: nil)
  • lat: (String, nil) (defaults to: nil)
  • long: (String, nil) (defaults to: nil)
  • os_version: (String, nil) (defaults to: nil)


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

Instance Attribute Details

#ip ⇒ String?

The IP address of the device

Parameters:

  • value (String, nil)

Returns:

  • (String, nil)


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

optional :ip, String, nil?: true

#lat ⇒ String?

The latitude of the device

Parameters:

  • value (String, nil)

Returns:

  • (String, nil)


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

optional :lat, String, nil?: true

#long ⇒ String?

The longitude of the device

Parameters:

  • value (String, nil)

Returns:

  • (String, nil)


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

optional :long, String, nil?: true

#os_version ⇒ String?

The operating system version

Parameters:

  • value (String, nil)

Returns:

  • (String, nil)


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

optional :os_version, String, nil?: true

Instance Method Details

#to_hash ⇒ { ip: String?, lat: String?, long: String?, os_version: String? }

Returns:

  • ({ ip: String?, lat: String?, long: String?, os_version: String? })


140
141
142
143
144
145
# File 'sig/courier/models/users/token_add_single_params.rbs', line 140

def to_hash: -> {
  ip: String?,
  lat: String?,
  long: String?,
  os_version: String?
}