Class: Onlyfans::Models::StatisticGetOverviewResponse::Data::MassMessages::Earnings

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

Overview

See Also:

  • Onlyfans::Models::StatisticGetOverviewResponse::Data::MassMessages#earnings

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 ⇒ Object



328
# File 'sig/onlyfans/models/statistic_get_overview_response.rbs', line 328

def initialize: (

Instance Attribute Details

#delta ⇒ Float?

Parameters:

  • (Float)

Returns:

  • (Float, nil)


246
# File 'lib/onlyfans/models/statistic_get_overview_response.rb', line 246

optional :delta, Float

#gross ⇒ Float?

Parameters:

  • (Float)

Returns:

  • (Float, nil)


251
# File 'lib/onlyfans/models/statistic_get_overview_response.rb', line 251

optional :gross, Float

#total ⇒ Float?

Parameters:

  • (Float)

Returns:

  • (Float, nil)


256
# File 'lib/onlyfans/models/statistic_get_overview_response.rb', line 256

optional :total, Float

Instance Method Details

#to_hash ⇒ { delta: Float, gross: Float, total: Float }

Returns:

  • ({ delta: Float, gross: Float, total: Float })


334
# File 'sig/onlyfans/models/statistic_get_overview_response.rbs', line 334

def to_hash: -> { delta: Float, gross: Float, total: Float }