Class: TerminalShop::Models::TokenAPI

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/terminal_shop/models/token.rb

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(id: , token: , created: ) ⇒ Object

Some parameter documentations has been truncated, see TerminalShop::Models::TokenAPI for more details.

A personal access token used to access the Terminal API. If you leak this, expect large sums of coffee to be ordered on your credit card.

Parameters:

  • id (String) (defaults to: )

    Unique object identifier.

  • token (String) (defaults to: )

    Personal access token (obfuscated).

  • created (String) (defaults to: )

    The created time for the token.



# File 'lib/terminal_shop/models/token.rb', line 24


Instance Attribute Details

#createdString

The created time for the token.

Returns:

  • (String)


22
# File 'lib/terminal_shop/models/token.rb', line 22

required :created, String

#idString

Unique object identifier. The format and length of IDs may change over time.

Returns:

  • (String)


10
# File 'lib/terminal_shop/models/token.rb', line 10

required :id, String

#tokenString

Personal access token (obfuscated).

Returns:

  • (String)


16
# File 'lib/terminal_shop/models/token.rb', line 16

required :token, String