Class: Onlyfans::Models::StatisticGetOverviewResponse::Data::Streams::Views

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

Overview

See Also:

  • Onlyfans::Models::StatisticGetOverviewResponse::Data::Streams#views

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 ⇒ Views

Returns a new instance of Views.

Parameters:

  • delta: (Integer)
  • total: (Integer)


602
# File 'sig/onlyfans/models/statistic_get_overview_response.rbs', line 602

def initialize: (?delta: Integer, ?total: Integer) -> void

Instance Attribute Details

#delta ⇒ Integer?

Parameters:

  • (Integer)

Returns:

  • (Integer, nil)


489
# File 'lib/onlyfans/models/statistic_get_overview_response.rb', line 489

optional :delta, Integer

#total ⇒ Integer?

Parameters:

  • (Integer)

Returns:

  • (Integer, nil)


494
# File 'lib/onlyfans/models/statistic_get_overview_response.rb', line 494

optional :total, Integer

Instance Method Details

#to_hash ⇒ { delta: Integer, total: Integer }

Returns:

  • ({ delta: Integer, total: Integer })


604
# File 'sig/onlyfans/models/statistic_get_overview_response.rbs', line 604

def to_hash: -> { delta: Integer, total: Integer }