Class: Straddle::Models::BridgeToken

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/straddle/models/bridge_token.rb,
sig/straddle/models/bridge_token.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(bridge_token:) ⇒ BridgeToken

Returns a new instance of BridgeToken.

Parameters:

  • bridge_token (String) —

    JSON Web Token (JWT) for the Bridge widget.

  • bridge_token: (String)


# File 'lib/straddle/models/bridge_token.rb', line 12

Instance Attribute Details

#bridge_token ⇒ String

JSON Web Token (JWT) for the Bridge widget.

Parameters:

  • value (String)

Returns:

  • (String)


10
# File 'lib/straddle/models/bridge_token.rb', line 10

required :bridge_token, String

Instance Method Details

#to_hash ⇒ { bridge_token: String }

Returns:

  • ({ bridge_token: String })


10
# File 'sig/straddle/models/bridge_token.rbs', line 10

def to_hash: -> { bridge_token: String }