Class: Onlyfans::Models::PostStatsResponse::Data::CommentChart
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- Onlyfans::Models::PostStatsResponse::Data::CommentChart
- Defined in:
- lib/onlyfans/models/post_stats_response.rb,
sig/onlyfans/models/post_stats_response.rbs
Instance Attribute Summary collapse
Instance Method Summary collapse
-
#initialize(comment_chart: nil, comment_count: nil, has_stats: nil, has_video: nil, is_available: nil, like_chart: nil, like_count: nil, look_chart: nil, look_count: nil, look_duration: nil, look_duration_average: nil, purchased_count: nil, purchased_summ: nil, purchases_chart: nil, tip_chart: nil, tip_count: nil, tip_sum: nil, tip_sum_chart: nil, unique_look_chart: nil, unique_look_count: nil) ⇒ CommentChart
constructor
A new instance of CommentChart.
- #to_hash ⇒ { count: Integer, date: String }
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(comment_chart: nil, comment_count: nil, has_stats: nil, has_video: nil, is_available: nil, like_chart: nil, like_count: nil, look_chart: nil, look_count: nil, look_duration: nil, look_duration_average: nil, purchased_count: nil, purchased_summ: nil, purchases_chart: nil, tip_chart: nil, tip_count: nil, tip_sum: nil, tip_sum_chart: nil, unique_look_chart: nil, unique_look_count: nil) ⇒ CommentChart
Returns a new instance of CommentChart.
251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 |
# File 'lib/onlyfans/models/post_stats_response.rb', line 251 class CommentChart < Onlyfans::Internal::Type::BaseModel # @!attribute count # # @return [Integer, nil] optional :count, Integer # @!attribute date # # @return [String, nil] optional :date, String # @!method initialize(count: nil, date: nil) # @param count [Integer] # @param date [String] end |
Instance Attribute Details
#count ⇒ Integer?
255 |
# File 'lib/onlyfans/models/post_stats_response.rb', line 255 optional :count, Integer |
#date ⇒ String?
260 |
# File 'lib/onlyfans/models/post_stats_response.rb', line 260 optional :date, String |
Instance Method Details
#to_hash ⇒ { count: Integer, date: String }
329 |
# File 'sig/onlyfans/models/post_stats_response.rbs', line 329
def to_hash: -> { count: Integer, date: String }
|