Class: Sentdm::Models::APIResponseOfContact
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- Sentdm::Models::APIResponseOfContact
- Defined in:
- lib/sentdm/models/api_response_of_contact.rb
Overview
Instance Attribute Summary collapse
-
#data ⇒ Sentdm::Models::ContactResponse?
Contact response for v3 API Uses snake_case for JSON property names.
-
#error ⇒ Sentdm::Models::ErrorDetail?
Error information.
-
#meta ⇒ Sentdm::Models::APIMeta?
Request and response metadata.
-
#success ⇒ Boolean?
Indicates whether the request was successful.
Instance Method Summary collapse
-
#initialize(data: nil, error: nil, meta: nil, success: nil) ⇒ Object
constructor
Some parameter documentations has been truncated, see APIResponseOfContact for more details.
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(data: nil, error: nil, meta: nil, success: nil) ⇒ Object
Some parameter documentations has been truncated, see Sentdm::Models::APIResponseOfContact for more details.
Standard API response envelope for all v3 endpoints
|
|
# File 'lib/sentdm/models/api_response_of_contact.rb', line 31
|
Instance Attribute Details
#data ⇒ Sentdm::Models::ContactResponse?
Contact response for v3 API Uses snake_case for JSON property names
11 |
# File 'lib/sentdm/models/api_response_of_contact.rb', line 11 optional :data, -> { Sentdm::ContactResponse }, nil?: true |
#error ⇒ Sentdm::Models::ErrorDetail?
Error information
17 |
# File 'lib/sentdm/models/api_response_of_contact.rb', line 17 optional :error, -> { Sentdm::ErrorDetail }, nil?: true |
#meta ⇒ Sentdm::Models::APIMeta?
Request and response metadata
23 |
# File 'lib/sentdm/models/api_response_of_contact.rb', line 23 optional :meta, -> { Sentdm::APIMeta } |