Class: Onlyfans::Models::SmartLinkListSpendersParams

Inherits:
Internal::Type::BaseModel show all
Extended by:
Internal::Type::RequestParameters::Converter
Includes:
Internal::Type::RequestParameters
Defined in:
lib/onlyfans/models/smart_link_list_spenders_params.rb,
sig/onlyfans/models/smart_link_list_spenders_params.rbs

Overview

See Also:

  • Onlyfans::Resources::SmartLinks#list_spenders

Instance Attribute Summary collapse

Attributes included from Internal::Type::RequestParameters

#request_options

Instance Method Summary collapse

Methods included from Internal::Type::RequestParameters::Converter

dump_request

Methods included from Internal::Type::RequestParameters

included

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(smart_link_id:, limit: nil, min_spend: nil, offset: nil, request_options: {}) ⇒ Object

Parameters:

  • smart_link_id (String)
  • limit (Integer) (defaults to: nil) —

    The number of spenders to return per page. Default 50

  • min_spend (Float) (defaults to: nil) —

    Minimal spend of a fan. Default 1

  • offset (Integer) (defaults to: nil) —

    The offset used for pagination. Default 0

  • request_options (Onlyfans::RequestOptions, Hash{Symbol=>Object}) (defaults to: {})


# File 'lib/onlyfans/models/smart_link_list_spenders_params.rb', line 33

Instance Attribute Details

#limit ⇒ Integer?

The number of spenders to return per page. Default 50

Parameters:

  • (Integer)

Returns:

  • (Integer, nil)


19
# File 'lib/onlyfans/models/smart_link_list_spenders_params.rb', line 19

optional :limit, Integer

#min_spend ⇒ Float?

Minimal spend of a fan. Default 1

Parameters:

  • (Float)

Returns:

  • (Float, nil)


25
# File 'lib/onlyfans/models/smart_link_list_spenders_params.rb', line 25

optional :min_spend, Float

#offset ⇒ Integer?

The offset used for pagination. Default 0

Parameters:

  • (Integer)

Returns:

  • (Integer, nil)


31
# File 'lib/onlyfans/models/smart_link_list_spenders_params.rb', line 31

optional :offset, Integer

Parameters:

  • value (String)

Returns:

  • (String)


13
# File 'lib/onlyfans/models/smart_link_list_spenders_params.rb', line 13

required :smart_link_id, String

Instance Method Details

#to_hash ⇒ {

Returns:

  • ({)


38
# File 'sig/onlyfans/models/smart_link_list_spenders_params.rbs', line 38

def to_hash: -> {