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

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

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, earnings: nil, subscribers: nil, subscribes: nil, total: nil) ⇒ Earning

Returns a new instance of Earning.

Parameters:

  • (defaults to: nil)
  • (defaults to: nil)
  • (defaults to: nil)
  • (defaults to: nil)
  • (defaults to: nil)


149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
# File 'lib/onlyfans/models/subscriber_retrieve_statistics_response.rb', line 149

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

#count ⇒ Float?

Parameters:

Returns:



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

optional :count, Float

#date ⇒ String?

Parameters:

Returns:



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

optional :date, String

Instance Method Details

#to_hash ⇒ { count: Float, date: String }

Returns:



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

def to_hash: -> { count: Float, date: String }