Class: Onlyfans::Models::SearchProfilesParams::Filter

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/onlyfans/models/search_profiles_params.rb

Defined Under Namespace

Modules: Gender

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(gender: nil) ⇒ Object

Some parameter documentations has been truncated, see Onlyfans::Models::SearchProfilesParams::Filter for more details.

Parameters:



115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
# File 'lib/onlyfans/models/search_profiles_params.rb', line 115

class Filter < Onlyfans::Internal::Type::BaseModel
  # @!attribute gender
  #   Filter by gender (available: `female`, `male`, `trans`, `trans_ftm`
  #   (Female-to-Male), `trans_mft` (Male-to-Female), `couple`). ⭐️ Only available on
  #   the Pro and Enterprise plan.
  #
  #   @return [Symbol, Onlyfans::Models::SearchProfilesParams::Filter::Gender, nil]
  optional :gender, enum: -> { Onlyfans::SearchProfilesParams::Filter::Gender }

  # @!method initialize(gender: nil)
  #   Some parameter documentations has been truncated, see
  #   {Onlyfans::Models::SearchProfilesParams::Filter} for more details.
  #
  #   @param gender [Symbol, Onlyfans::Models::SearchProfilesParams::Filter::Gender] Filter by gender (available: `female`, `male`, `trans`, `trans_ftm` (Female-to-M

  # Filter by gender (available: `female`, `male`, `trans`, `trans_ftm`
  # (Female-to-Male), `trans_mft` (Male-to-Female), `couple`). ⭐️ Only available on
  # the Pro and Enterprise plan.
  #
  # @see Onlyfans::Models::SearchProfilesParams::Filter#gender
  module Gender
    extend Onlyfans::Internal::Type::Enum

    FEMALE = :female
    MALE = :male
    TRANS = :trans
    TRANS_FTM = :trans_ftm
    TRANS_MTF = :trans_mtf
    COUPLE = :couple

    # @!method self.values
    #   @return [Array<Symbol>]
  end
end

Instance Attribute Details

#genderSymbol, ...

Filter by gender (available: ‘female`, `male`, `trans`, `trans_ftm` (Female-to-Male), `trans_mft` (Male-to-Female), `couple`). ⭐️ Only available on the Pro and Enterprise plan.



122
# File 'lib/onlyfans/models/search_profiles_params.rb', line 122

optional :gender, enum: -> { Onlyfans::SearchProfilesParams::Filter::Gender }