Class: Cadenya::Models::ObjectiveError
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- Cadenya::Models::ObjectiveError
- Defined in:
- lib/cadenya/models/objective_error.rb,
sig/cadenya/models/objective_error.rbs
Instance Attribute Summary collapse
Instance Method Summary collapse
-
#initialize(message: nil, type: nil) ⇒ ObjectiveError
constructor
A new instance of ObjectiveError.
- #to_hash ⇒ { message: String, type: 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
#initialize(message: nil, type: nil) ⇒ ObjectiveError
Returns a new instance of ObjectiveError.
|
|
# File 'lib/cadenya/models/objective_error.rb', line 16
|
Instance Attribute Details
#message ⇒ String?
9 |
# File 'lib/cadenya/models/objective_error.rb', line 9 optional :message, String |
#type ⇒ String?
14 |
# File 'lib/cadenya/models/objective_error.rb', line 14 optional :type, String |
Instance Method Details
#to_hash ⇒ { message: String, type: String }
16 |
# File 'sig/cadenya/models/objective_error.rbs', line 16
def to_hash: -> { message: String, type: String }
|