Class: Onlyfans::Models::DataExportCancelResponse::Data

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/onlyfans/models/data_export_cancel_response.rb,
sig/onlyfans/models/data_export_cancel_response.rbs

Overview

See Also:

  • Onlyfans::Models::DataExportCancelResponse#data

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(id: nil, message: nil, status: nil) ⇒ Data

Returns a new instance of Data.

Parameters:

  • id (String) (defaults to: nil)
  • message (String) (defaults to: nil)
  • status (String) (defaults to: nil)
  • id: (String) (defaults to: nil)
  • message: (String) (defaults to: nil)
  • status: (String) (defaults to: nil)


# File 'lib/onlyfans/models/data_export_cancel_response.rb', line 136


Instance Attribute Details

#id ⇒ String?

Parameters:

  • (String)

Returns:

  • (String, nil)


124
# File 'lib/onlyfans/models/data_export_cancel_response.rb', line 124

optional :id, String

#message ⇒ String?

Parameters:

  • (String)

Returns:

  • (String, nil)


129
# File 'lib/onlyfans/models/data_export_cancel_response.rb', line 129

optional :message, String

#status ⇒ String?

Parameters:

  • (String)

Returns:

  • (String, nil)


134
# File 'lib/onlyfans/models/data_export_cancel_response.rb', line 134

optional :status, String

Instance Method Details

#to_hash ⇒ { id: String, message: String, status: String }

Returns:

  • ({ id: String, message: String, status: String })


171
# File 'sig/onlyfans/models/data_export_cancel_response.rbs', line 171

def to_hash: -> { id: String, message: String, status: String }