Class: Onlyfans::Models::MeGetTopPercentageResponse::Data

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

Overview

See Also:

  • Onlyfans::Models::MeGetTopPercentageResponse#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(message: nil, top_percentage: nil) ⇒ Data

Returns a new instance of Data.

Parameters:

  • message (String, nil) (defaults to: nil)
  • top_percentage (Float) (defaults to: nil)
  • message: (String, nil) (defaults to: nil)
  • top_percentage: (Float) (defaults to: nil)


# File 'lib/onlyfans/models/me_get_top_percentage_response.rb', line 125

Instance Attribute Details

#message ⇒ String?

Parameters:

  • value (String, nil)

Returns:

  • (String, nil)


118
# File 'lib/onlyfans/models/me_get_top_percentage_response.rb', line 118

optional :message, String, nil?: true

#top_percentage ⇒ Float?

Parameters:

  • (Float)

Returns:

  • (Float, nil)


123
# File 'lib/onlyfans/models/me_get_top_percentage_response.rb', line 123

optional :top_percentage, Float

Instance Method Details

#to_hash ⇒ { message: String?, top_percentage: Float }

Returns:

  • ({ message: String?, top_percentage: Float })


162
# File 'sig/onlyfans/models/me_get_top_percentage_response.rbs', line 162

def to_hash: -> { message: String?, top_percentage: Float }