Class: Trycourier::Models::UserToken::Tracking

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/trycourier/models/user_token.rb

Overview

See Also:

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

Information about the device the token is associated with.

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/trycourier/models/user_token.rb', line 166

Instance Attribute Details

#ipString?

The IP address of the device

Returns:

  • (String, nil)


146
# File 'lib/trycourier/models/user_token.rb', line 146

optional :ip, String, nil?: true

#latString?

The latitude of the device

Returns:

  • (String, nil)


152
# File 'lib/trycourier/models/user_token.rb', line 152

optional :lat, String, nil?: true

#longString?

The longitude of the device

Returns:

  • (String, nil)


158
# File 'lib/trycourier/models/user_token.rb', line 158

optional :long, String, nil?: true

#os_versionString?

The operating system version

Returns:

  • (String, nil)


164
# File 'lib/trycourier/models/user_token.rb', line 164

optional :os_version, String, nil?: true