Class: Onlyfans::Models::Statistics::StatementGetEarningsResponse::Data::Total::ChartAmount

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/onlyfans/models/statistics/statement_get_earnings_response.rb

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(chart_amount: nil, chart_count: nil, delta: nil, gross: nil, total: nil) ⇒ Object

Parameters:



163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
# File 'lib/onlyfans/models/statistics/statement_get_earnings_response.rb', line 163

class ChartAmount < Onlyfans::Internal::Type::BaseModel
  # @!attribute count
  #
  #   @return [Float, nil]
  optional :count, Float

  # @!attribute date
  #
  #   @return [String, nil]
  optional :date, String

  # @!method initialize(count: nil, date: nil)
  #   @param count [Float]
  #   @param date [String]
end

Instance Attribute Details

#countFloat?

Returns:

  • (Float, nil)


167
# File 'lib/onlyfans/models/statistics/statement_get_earnings_response.rb', line 167

optional :count, Float

#dateString?

Returns:

  • (String, nil)


172
# File 'lib/onlyfans/models/statistics/statement_get_earnings_response.rb', line 172

optional :date, String