Class: XTwitterScraper::Models::GuestWalletCreateResponse::Authorization

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/x_twitter_scraper/models/guest_wallet_create_response.rb,
sig/x_twitter_scraper/models/guest_wallet_create_response.rbs

Overview

See Also:

  • XTwitterScraper::Models::GuestWalletCreateResponse#authorization

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

#initializeAuthorization

Returns a new instance of Authorization.

Parameters:

  • header: (:Authorization)
  • scheme: (:Bearer)


96
# File 'sig/x_twitter_scraper/models/guest_wallet_create_response.rbs', line 96

def initialize: (?header: :Authorization, ?scheme: :Bearer) -> void

Instance Attribute Details

#headerSymbol, :Authorization

Parameters:

  • value (:Authorization)

Returns:

  • (Symbol, :Authorization)


132
# File 'lib/x_twitter_scraper/models/guest_wallet_create_response.rb', line 132

required :header, const: :Authorization

#schemeSymbol, :Bearer

Parameters:

  • value (:Bearer)

Returns:

  • (Symbol, :Bearer)


137
# File 'lib/x_twitter_scraper/models/guest_wallet_create_response.rb', line 137

required :scheme, const: :Bearer

Instance Method Details

#to_hash{ header: :Authorization, scheme: :Bearer }

Returns:

  • ({ header: :Authorization, scheme: :Bearer })


98
# File 'sig/x_twitter_scraper/models/guest_wallet_create_response.rbs', line 98

def to_hash: -> { header: :Authorization, scheme: :Bearer }