Class: Onlyfans::Models::SubscriberRetrieveStatisticsResponse::Data

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

Overview

See Also:

  • Onlyfans::Models::SubscriberRetrieveStatisticsResponse#data

Defined Under Namespace

Classes: Earning, Subscribe

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(count: nil, date: nil) ⇒ Object

Parameters:

  • count (Float) (defaults to: nil)
  • date (String) (defaults to: nil)


# File 'lib/onlyfans/models/subscriber_retrieve_statistics_response.rb', line 160

Instance Attribute Details

#delta ⇒ Float?

Parameters:

  • (Float)

Returns:

  • (Float, nil)


118
# File 'lib/onlyfans/models/subscriber_retrieve_statistics_response.rb', line 118

optional :delta, Float

#earnings ⇒ Array<Onlyfans::Models::SubscriberRetrieveStatisticsResponse::Data::Earning>?



123
124
# File 'lib/onlyfans/models/subscriber_retrieve_statistics_response.rb', line 123

optional :earnings,
-> { Onlyfans::Internal::Type::ArrayOf[Onlyfans::Models::SubscriberRetrieveStatisticsResponse::Data::Earning] }

#subscribers ⇒ Integer?

Parameters:

  • (Integer)

Returns:

  • (Integer, nil)


129
# File 'lib/onlyfans/models/subscriber_retrieve_statistics_response.rb', line 129

optional :subscribers, Integer

#subscribes ⇒ Array<Onlyfans::Models::SubscriberRetrieveStatisticsResponse::Data::Subscribe>?



134
135
# File 'lib/onlyfans/models/subscriber_retrieve_statistics_response.rb', line 134

optional :subscribes,
-> { Onlyfans::Internal::Type::ArrayOf[Onlyfans::Models::SubscriberRetrieveStatisticsResponse::Data::Subscribe] }

#total ⇒ Float?

Parameters:

  • (Float)

Returns:

  • (Float, nil)


140
# File 'lib/onlyfans/models/subscriber_retrieve_statistics_response.rb', line 140

optional :total, Float

Instance Method Details

#to_hash ⇒ {

Returns:

  • ({)


193
# File 'sig/onlyfans/models/subscriber_retrieve_statistics_response.rbs', line 193

def to_hash: -> {