Class: Onlyfans::Models::StatisticGetOverviewResponse::Data::Visitors

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

Defined Under Namespace

Classes: ChartData, Earnings, Subscriptions, Visitors

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

Parameters:

  • delta (Integer) (defaults to: nil)
  • total (Integer) (defaults to: nil)


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

Instance Attribute Details

#chart_data ⇒ Array<Onlyfans::Models::StatisticGetOverviewResponse::Data::Visitors::ChartData>?



507
508
509
# File 'lib/onlyfans/models/statistic_get_overview_response.rb', line 507

optional :chart_data,
-> { Onlyfans::Internal::Type::ArrayOf[Onlyfans::Models::StatisticGetOverviewResponse::Data::Visitors::ChartData] },
api_name: :chartData

#earnings ⇒ Onlyfans::Models::StatisticGetOverviewResponse::Data::Visitors::Earnings?



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

optional :earnings, -> { Onlyfans::Models::StatisticGetOverviewResponse::Data::Visitors::Earnings }

#has_statistic ⇒ Boolean?

Parameters:

  • (Boolean)

Returns:

  • (Boolean, nil)


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

optional :has_statistic, Onlyfans::Internal::Type::Boolean, api_name: :hasStatistic

#subscriptions ⇒ Onlyfans::Models::StatisticGetOverviewResponse::Data::Visitors::Subscriptions?



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

optional :subscriptions,
-> { Onlyfans::Models::StatisticGetOverviewResponse::Data::Visitors::Subscriptions }

#visitors ⇒ Onlyfans::Models::StatisticGetOverviewResponse::Data::Visitors::Visitors?



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

optional :visitors, -> { Onlyfans::Models::StatisticGetOverviewResponse::Data::Visitors::Visitors }

Instance Method Details

#to_hash ⇒ {

Returns:

  • ({)


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

def to_hash: -> {