Class: ScalarGalaxy::Models::User
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- ScalarGalaxy::Models::User
- Defined in:
- lib/galaxy-ruby/models/user.rb,
sig/galaxy-ruby/models/user.rbs
Overview
Instance Attribute Summary collapse
-
#id ⇒ Integer?
readonly
Returns the value of attribute id.
- #name ⇒ String?
Instance Method Summary collapse
- #id ⇒ Integer readonly
-
#initialize(id: nil, name: nil) ⇒ User
constructor
A user.
- #to_hash ⇒ { id: Integer, name: String }
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
Instance Attribute Details
#id ⇒ Integer? (readonly)
Returns the value of attribute id.
6 7 8 |
# File 'sig/galaxy-ruby/models/user.rbs', line 6 def id @id end |
#name ⇒ String?
10 |
# File 'lib/galaxy-ruby/models/user.rb', line 10 optional :name, String |
Instance Method Details
#id= ⇒ Integer (readonly)
8 |
# File 'sig/galaxy-ruby/models/user.rbs', line 8
def id=: (Integer) -> Integer
|
#to_hash ⇒ { id: Integer, name: String }
16 |
# File 'sig/galaxy-ruby/models/user.rbs', line 16
def to_hash: -> { id: Integer, name: String }
|