Class: Onlyfans::Models::StatisticGetOverviewResponse::Data::Earning

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#earning

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

Returns a new instance of Earning.

Parameters:

  • delta: (Float)
  • gross: (Float)
  • total: (Float)


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

def initialize: (?delta: Float, ?gross: Float, ?total: Float) -> void

Instance Attribute Details

#delta ⇒ Float?

Parameters:

  • (Float)

Returns:

  • (Float, nil)


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

optional :delta, Float

#gross ⇒ Float?

Parameters:

  • (Float)

Returns:

  • (Float, nil)


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

optional :gross, Float

#total ⇒ Float?

Parameters:

  • (Float)

Returns:

  • (Float, nil)


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

optional :total, Float

Instance Method Details

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

Returns:

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


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

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