Class: Onlyfans::Models::StatisticGetOverviewResponse::Data::Posts::ChartData

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/onlyfans/models/statistic_get_overview_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_data: nil, count: nil, earnings: nil, has_statistic: nil, views: nil) ⇒ Object

Parameters:



318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
# File 'lib/onlyfans/models/statistic_get_overview_response.rb', line 318

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

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

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

Instance Attribute Details

#countInteger?

Returns:

  • (Integer, nil)


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

optional :count, Integer

#dateString?

Returns:

  • (String, nil)


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

optional :date, String