Class: GrowsurfRuby::Models::Campaign::ParticipantCreateMobileTokenResponse

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/growsurf_ruby/models/campaign/participant_create_mobile_token_response.rb

Overview

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(expires_in:, participant_token:) ⇒ Object

Parameters:

  • expires_in (Integer)

    Token lifetime in seconds.

  • participant_token (String)

    Participant-scoped bearer token for GrowSurf mobile SDK participant endpoints.



# File 'lib/growsurf_ruby/models/campaign/participant_create_mobile_token_response.rb', line 20

Instance Attribute Details

#expires_inInteger

Token lifetime in seconds.

Returns:

  • (Integer)


12
# File 'lib/growsurf_ruby/models/campaign/participant_create_mobile_token_response.rb', line 12

required :expires_in, Integer, api_name: :expiresIn

#participant_tokenString

Participant-scoped bearer token for GrowSurf mobile SDK participant endpoints.

Returns:

  • (String)


18
# File 'lib/growsurf_ruby/models/campaign/participant_create_mobile_token_response.rb', line 18

required :participant_token, String, api_name: :participantToken