Class: Onlyfans::Models::PromotionCreateResponse::Data

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/onlyfans/models/promotion_create_response.rb,
sig/onlyfans/models/promotion_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_claim: nil, claims_count: nil, created_at: nil, finished_at: nil, has_related_promo: nil, is_finished: nil, message: nil, price: nil, raw_message: nil, subscribe_counts: nil, subscribe_days: nil, type: nil) ⇒ Object

Parameters:

  • id (Integer) (defaults to: nil)
  • can_claim (Boolean) (defaults to: nil)
  • claims_count (Integer) (defaults to: nil)
  • created_at (String) (defaults to: nil)
  • finished_at (String) (defaults to: nil)
  • has_related_promo (Boolean) (defaults to: nil)
  • is_finished (Boolean) (defaults to: nil)
  • message (String) (defaults to: nil)
  • price (Integer) (defaults to: nil)
  • raw_message (String) (defaults to: nil)
  • subscribe_counts (Integer) (defaults to: nil)
  • subscribe_days (Integer) (defaults to: nil)
  • type (String) (defaults to: nil)


# File 'lib/onlyfans/models/promotion_create_response.rb', line 185


Instance Attribute Details

#can_claim ⇒ Boolean?

Parameters:

  • (Boolean)

Returns:

  • (Boolean, nil)


128
# File 'lib/onlyfans/models/promotion_create_response.rb', line 128

optional :can_claim, Onlyfans::Internal::Type::Boolean, api_name: :canClaim

#claims_count ⇒ Integer?

Parameters:

  • (Integer)

Returns:

  • (Integer, nil)


133
# File 'lib/onlyfans/models/promotion_create_response.rb', line 133

optional :claims_count, Integer, api_name: :claimsCount

#created_at ⇒ String?

Parameters:

  • (String)

Returns:

  • (String, nil)


138
# File 'lib/onlyfans/models/promotion_create_response.rb', line 138

optional :created_at, String, api_name: :createdAt

#finished_at ⇒ String?

Parameters:

  • (String)

Returns:

  • (String, nil)


143
# File 'lib/onlyfans/models/promotion_create_response.rb', line 143

optional :finished_at, String, api_name: :finishedAt

Parameters:

  • (Boolean)

Returns:

  • (Boolean, nil)


148
# File 'lib/onlyfans/models/promotion_create_response.rb', line 148

optional :has_related_promo, Onlyfans::Internal::Type::Boolean, api_name: :hasRelatedPromo

#id ⇒ Integer?

Parameters:

  • (Integer)

Returns:

  • (Integer, nil)


123
# File 'lib/onlyfans/models/promotion_create_response.rb', line 123

optional :id, Integer

#is_finished ⇒ Boolean?

Parameters:

  • (Boolean)

Returns:

  • (Boolean, nil)


153
# File 'lib/onlyfans/models/promotion_create_response.rb', line 153

optional :is_finished, Onlyfans::Internal::Type::Boolean, api_name: :isFinished

#message ⇒ String?

Parameters:

  • (String)

Returns:

  • (String, nil)


158
# File 'lib/onlyfans/models/promotion_create_response.rb', line 158

optional :message, String

#price ⇒ Integer?

Parameters:

  • (Integer)

Returns:

  • (Integer, nil)


163
# File 'lib/onlyfans/models/promotion_create_response.rb', line 163

optional :price, Integer

#raw_message ⇒ String?

Parameters:

  • (String)

Returns:

  • (String, nil)


168
# File 'lib/onlyfans/models/promotion_create_response.rb', line 168

optional :raw_message, String, api_name: :rawMessage

#subscribe_counts ⇒ Integer?

Parameters:

  • (Integer)

Returns:

  • (Integer, nil)


173
# File 'lib/onlyfans/models/promotion_create_response.rb', line 173

optional :subscribe_counts, Integer, api_name: :subscribeCounts

#subscribe_days ⇒ Integer?

Parameters:

  • (Integer)

Returns:

  • (Integer, nil)


178
# File 'lib/onlyfans/models/promotion_create_response.rb', line 178

optional :subscribe_days, Integer, api_name: :subscribeDays

#type ⇒ String?

Parameters:

  • (String)

Returns:

  • (String, nil)


183
# File 'lib/onlyfans/models/promotion_create_response.rb', line 183

optional :type, String

Instance Method Details

#to_hash ⇒ {

Returns:

  • ({)


240
# File 'sig/onlyfans/models/promotion_create_response.rbs', line 240

def to_hash: -> {