Class: Onlyfans::Models::Analytics::SummaryGetPeriodComparisonParams::PeriodB

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

Returns a new instance of PeriodB.

Parameters:

  • end_: (String)
  • start: (String)


73
# File 'sig/onlyfans/models/analytics/summary_get_period_comparison_params.rbs', line 73

def initialize: (end_: String, start: String) -> void

Instance Attribute Details

#end_ ⇒ String

Must be a valid date. Must be a date after or equal to period_b.start.

Parameters:

  • value (String)

Returns:

  • (String)


86
# File 'lib/onlyfans/models/analytics/summary_get_period_comparison_params.rb', line 86

required :end_, String, api_name: :end

#start ⇒ String

Must be a valid date.

Parameters:

  • value (String)

Returns:

  • (String)


92
# File 'lib/onlyfans/models/analytics/summary_get_period_comparison_params.rb', line 92

required :start, String

Instance Method Details

#to_hash ⇒ { end_: String, start: String }

Returns:

  • ({ end_: String, start: String })


75
# File 'sig/onlyfans/models/analytics/summary_get_period_comparison_params.rbs', line 75

def to_hash: -> { end_: String, start: String }