Class: Onlyfans::Models::TrackingLinkGetStatsResponse::Data::Summary

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

Overview

See Also:

  • Onlyfans::Models::TrackingLinkGetStatsResponse::Data#summary

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(clicks_total: nil, revenue_cached_at: nil, revenue_total: nil, spenders_total: nil, subs_total: nil) ⇒ Object

Parameters:

  • clicks_total (Integer) (defaults to: nil)
  • revenue_cached_at (String) (defaults to: nil)
  • revenue_total (Float) (defaults to: nil)
  • spenders_total (Integer) (defaults to: nil)
  • subs_total (Integer) (defaults to: nil)


# File 'lib/onlyfans/models/tracking_link_get_stats_response.rb', line 197

Instance Attribute Details

#clicks_total ⇒ Integer?

Parameters:

  • (Integer)

Returns:

  • (Integer, nil)


175
# File 'lib/onlyfans/models/tracking_link_get_stats_response.rb', line 175

optional :clicks_total, Integer

#revenue_cached_at ⇒ String?

Parameters:

  • (String)

Returns:

  • (String, nil)


180
# File 'lib/onlyfans/models/tracking_link_get_stats_response.rb', line 180

optional :revenue_cached_at, String

#revenue_total ⇒ Float?

Parameters:

  • (Float)

Returns:

  • (Float, nil)


185
# File 'lib/onlyfans/models/tracking_link_get_stats_response.rb', line 185

optional :revenue_total, Float

#spenders_total ⇒ Integer?

Parameters:

  • (Integer)

Returns:

  • (Integer, nil)


190
# File 'lib/onlyfans/models/tracking_link_get_stats_response.rb', line 190

optional :spenders_total, Integer

#subs_total ⇒ Integer?

Parameters:

  • (Integer)

Returns:

  • (Integer, nil)


195
# File 'lib/onlyfans/models/tracking_link_get_stats_response.rb', line 195

optional :subs_total, Integer

Instance Method Details

#to_hash ⇒ {

Returns:

  • ({)


272
# File 'sig/onlyfans/models/tracking_link_get_stats_response.rbs', line 272

def to_hash: -> {