Class: Onlyfans::Models::Analytics::SummaryGetHistoricalPerformanceResponseItem

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/onlyfans/models/analytics/summary_get_historical_performance_response.rb,
sig/onlyfans/models/analytics/summary_get_historical_performance_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 ⇒ SummaryGetHistoricalPerformanceResponseItem

Returns a new instance of SummaryGetHistoricalPerformanceResponseItem.

Parameters:

  • period: (String)
  • value: (Float)


16
# File 'sig/onlyfans/models/analytics/summary_get_historical_performance_response.rbs', line 16

def initialize: (?period: String, ?value: Float) -> void

Instance Attribute Details

#period ⇒ String?

Parameters:

  • (String)

Returns:

  • (String, nil)


10
# File 'lib/onlyfans/models/analytics/summary_get_historical_performance_response.rb', line 10

optional :period, String

#value ⇒ Float?

Parameters:

  • (Float)

Returns:

  • (Float, nil)


15
# File 'lib/onlyfans/models/analytics/summary_get_historical_performance_response.rb', line 15

optional :value, Float

Instance Method Details

#to_hash ⇒ { period: String, value: Float }

Returns:

  • ({ period: String, value: Float })


18
# File 'sig/onlyfans/models/analytics/summary_get_historical_performance_response.rbs', line 18

def to_hash: -> { period: String, value: Float }