Class: Onlyfans::Models::TrialLinkRetrieveStatsResponse::Data::DailyMetric

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/onlyfans/models/trial_link_retrieve_stats_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(daily_metrics: nil, monthly_metrics: nil, summary: nil) ⇒ Object



102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
# File 'lib/onlyfans/models/trial_link_retrieve_stats_response.rb', line 102

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

  # @!attribute revenue
  #
  #   @return [Float, nil]
  optional :revenue, Float

  # @!attribute spenders
  #
  #   @return [Integer, nil]
  optional :spenders, Integer

  # @!attribute subs
  #
  #   @return [Integer, nil]
  optional :subs, Integer

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

  # @!method initialize(clicks: nil, revenue: nil, spenders: nil, subs: nil, timestamp: nil)
  #   @param clicks [Integer]
  #   @param revenue [Float]
  #   @param spenders [Integer]
  #   @param subs [Integer]
  #   @param timestamp [String]
end

Instance Attribute Details

#clicksInteger?

Returns:

  • (Integer, nil)


106
# File 'lib/onlyfans/models/trial_link_retrieve_stats_response.rb', line 106

optional :clicks, Integer

#revenueFloat?

Returns:

  • (Float, nil)


111
# File 'lib/onlyfans/models/trial_link_retrieve_stats_response.rb', line 111

optional :revenue, Float

#spendersInteger?

Returns:

  • (Integer, nil)


116
# File 'lib/onlyfans/models/trial_link_retrieve_stats_response.rb', line 116

optional :spenders, Integer

#subsInteger?

Returns:

  • (Integer, nil)


121
# File 'lib/onlyfans/models/trial_link_retrieve_stats_response.rb', line 121

optional :subs, Integer

#timestampString?

Returns:

  • (String, nil)


126
# File 'lib/onlyfans/models/trial_link_retrieve_stats_response.rb', line 126

optional :timestamp, String