Class: Onlyfans::Models::Users::RestrictCreateResponse::Data::SubscriptionBundle

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/onlyfans/models/users/restrict_create_response.rb,
sig/onlyfans/models/users/restrict_create_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/users/restrict_create_response.rb', line 1164

Instance Attribute Details

#can_buy ⇒ Boolean?

Parameters:

  • (Boolean)

Returns:

  • (Boolean, nil)


1147
# File 'lib/onlyfans/models/users/restrict_create_response.rb', line 1147

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

#discount ⇒ Integer?

Parameters:

  • (Integer)

Returns:

  • (Integer, nil)


1152
# File 'lib/onlyfans/models/users/restrict_create_response.rb', line 1152

optional :discount, Integer

#duration ⇒ Integer?

Parameters:

  • (Integer)

Returns:

  • (Integer, nil)


1157
# File 'lib/onlyfans/models/users/restrict_create_response.rb', line 1157

optional :duration, Integer

#id ⇒ Integer?

Parameters:

  • (Integer)

Returns:

  • (Integer, nil)


1142
# File 'lib/onlyfans/models/users/restrict_create_response.rb', line 1142

optional :id, Integer

#price ⇒ Float?

Parameters:

  • (Float)

Returns:

  • (Float, nil)


1162
# File 'lib/onlyfans/models/users/restrict_create_response.rb', line 1162

optional :price, Float

Instance Method Details

#to_hash ⇒ {

Returns:

  • ({)


1358
# File 'sig/onlyfans/models/users/restrict_create_response.rbs', line 1358

def to_hash: -> {