Class: Onlyfans::Models::Analytics::FinancialGetForecastResponse::Forecast

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/onlyfans/models/analytics/financial_get_forecast_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(forecast: nil, historical: nil, metric: nil, model: nil) ⇒ Object

Parameters:



36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
# File 'lib/onlyfans/models/analytics/financial_get_forecast_response.rb', line 36

class Forecast < Onlyfans::Internal::Type::BaseModel
  # @!attribute date
  #
  #   @return [String, nil]
  optional :date, String

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

  # @!method initialize(date: nil, value: nil)
  #   @param date [String]
  #   @param value [Float]
end

Instance Attribute Details

#dateString?

Returns:

  • (String, nil)


40
# File 'lib/onlyfans/models/analytics/financial_get_forecast_response.rb', line 40

optional :date, String

#valueFloat?

Returns:

  • (Float, nil)


45
# File 'lib/onlyfans/models/analytics/financial_get_forecast_response.rb', line 45

optional :value, Float