Class: Sentdm::Models::Profiles::APIResponseOfTcrCampaignWithUseCases

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/sentdm/models/profiles/api_response_of_tcr_campaign_with_use_cases.rb

Overview

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(data: nil, error: nil, meta: nil, success: nil) ⇒ Object

Standard API response envelope for all v3 endpoints

Parameters:



# File 'lib/sentdm/models/profiles/api_response_of_tcr_campaign_with_use_cases.rb', line 32

Instance Attribute Details

#dataSentdm::Models::Profiles::TcrCampaignWithUseCases?

The response data (null if error)



12
# File 'lib/sentdm/models/profiles/api_response_of_tcr_campaign_with_use_cases.rb', line 12

optional :data, -> { Sentdm::Profiles::TcrCampaignWithUseCases }, nil?: true

#errorSentdm::Models::ErrorDetail?

Error information

Returns:



18
# File 'lib/sentdm/models/profiles/api_response_of_tcr_campaign_with_use_cases.rb', line 18

optional :error, -> { Sentdm::ErrorDetail }, nil?: true

#metaSentdm::Models::APIMeta?

Request and response metadata

Returns:



24
# File 'lib/sentdm/models/profiles/api_response_of_tcr_campaign_with_use_cases.rb', line 24

optional :meta, -> { Sentdm::APIMeta }

#successBoolean?

Indicates whether the request was successful

Returns:

  • (Boolean, nil)


30
# File 'lib/sentdm/models/profiles/api_response_of_tcr_campaign_with_use_cases.rb', line 30

optional :success, Sentdm::Internal::Type::Boolean