Class: Straddle::Models::AccountSettingsResponse
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- Straddle::Models::AccountSettingsResponse
- Defined in:
- lib/straddle/models/account_settings_response.rb,
sig/straddle/models/account_settings_response.rbs
Overview
Defined Under Namespace
Modules: ResponseType
Instance Attribute Summary collapse
- #data ⇒ Straddle::Models::AccountSettingsAPI
-
#meta ⇒ Straddle::Models::ResponseMetadata
Metadata for an API request.
-
#response_type ⇒ Symbol, Straddle::Models::AccountSettingsResponse::ResponseType
Indicates how the response content is structured.
Instance Method Summary collapse
-
#initialize(data:, meta:, response_type:) ⇒ Object
constructor
Some parameter documentations has been truncated, see AccountSettingsResponse for more details.
- #to_hash ⇒ {
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:, meta:, response_type:) ⇒ Object
Some parameter documentations has been truncated, see Straddle::Models::AccountSettingsResponse for more details.
|
|
# File 'lib/straddle/models/account_settings_response.rb', line 29
|
Instance Attribute Details
#data ⇒ Straddle::Models::AccountSettingsAPI
10 |
# File 'lib/straddle/models/account_settings_response.rb', line 10 required :data, -> { Straddle::AccountSettingsAPI } |
#meta ⇒ Straddle::Models::ResponseMetadata
Metadata for an API request.
16 |
# File 'lib/straddle/models/account_settings_response.rb', line 16 required :meta, -> { Straddle::ResponseMetadata } |
#response_type ⇒ Symbol, Straddle::Models::AccountSettingsResponse::ResponseType
Indicates how the response content is structured.
objectmeansdatacontains one JSON object.arraymeansdatacontains an array of objects.errormeanserrorcontains error details.nonemeans the response has no data.
27 |
# File 'lib/straddle/models/account_settings_response.rb', line 27 required :response_type, enum: -> { Straddle::AccountSettingsResponse::ResponseType } |
Instance Method Details
#to_hash ⇒ {
23 |
# File 'sig/straddle/models/account_settings_response.rbs', line 23
def to_hash: -> {
|