Class: TerminalShop::Models::ProfileAPI
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- TerminalShop::Models::ProfileAPI
- Defined in:
- lib/terminal_shop/models/profile.rb
Defined Under Namespace
Classes: User
Instance Attribute Summary collapse
-
#user ⇒ TerminalShop::Models::ProfileAPI::User
A Terminal shop user.
Instance Method Summary collapse
-
#initialize(user:) ⇒ Object
constructor
A Terminal shop user’s profile.
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(user:) ⇒ Object
A Terminal shop user’s profile. (We have users, btw.)
|
|
# File 'lib/terminal_shop/models/profile.rb', line 12
|
Instance Attribute Details
#user ⇒ TerminalShop::Models::ProfileAPI::User
A Terminal shop user. (We have users, btw.)
10 |
# File 'lib/terminal_shop/models/profile.rb', line 10 required :user, -> { TerminalShop::ProfileAPI::User } |