Class: Onlyfans::Models::UserRetrieveResponse::Data::SubscriptionBundle

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/onlyfans/models/user_retrieve_response.rb,
sig/onlyfans/models/user_retrieve_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(id: nil, can_buy: nil, discount: nil, duration: nil, price: nil) ⇒ Object

Parameters:

  • id (Integer) (defaults to: nil)
  • can_buy (Boolean) (defaults to: nil)
  • discount (Integer) (defaults to: nil)
  • duration (Integer) (defaults to: nil)
  • price (Float) (defaults to: nil)


# File 'lib/onlyfans/models/user_retrieve_response.rb', line 1163

Instance Attribute Details

#can_buy ⇒ Boolean?

Parameters:

  • (Boolean)

Returns:

  • (Boolean, nil)


1146
# File 'lib/onlyfans/models/user_retrieve_response.rb', line 1146

optional :can_buy, Onlyfans::Internal::Type::Boolean, api_name: :canBuy

#discount ⇒ Integer?

Parameters:

  • (Integer)

Returns:

  • (Integer, nil)


1151
# File 'lib/onlyfans/models/user_retrieve_response.rb', line 1151

optional :discount, Integer

#duration ⇒ Integer?

Parameters:

  • (Integer)

Returns:

  • (Integer, nil)


1156
# File 'lib/onlyfans/models/user_retrieve_response.rb', line 1156

optional :duration, Integer

#id ⇒ Integer?

Parameters:

  • (Integer)

Returns:

  • (Integer, nil)


1141
# File 'lib/onlyfans/models/user_retrieve_response.rb', line 1141

optional :id, Integer

#price ⇒ Float?

Parameters:

  • (Float)

Returns:

  • (Float, nil)


1161
# File 'lib/onlyfans/models/user_retrieve_response.rb', line 1161

optional :price, Float

Instance Method Details

#to_hash ⇒ {

Returns:

  • ({)


1357
# File 'sig/onlyfans/models/user_retrieve_response.rbs', line 1357

def to_hash: -> {