Class: Onlyfans::Models::PromotionListResponse::Data::Item

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

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)


136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
# File 'lib/onlyfans/models/promotion_list_response.rb', line 136

class Item < Onlyfans::Internal::Type::BaseModel
  # @!attribute id
  #
  #   @return [Integer, nil]
  optional :id, Integer

  # @!attribute can_claim
  #
  #   @return [Boolean, nil]
  optional :can_claim, Onlyfans::Internal::Type::Boolean, api_name: :canClaim

  # @!attribute claims_count
  #
  #   @return [Integer, nil]
  optional :claims_count, Integer, api_name: :claimsCount

  # @!attribute created_at
  #
  #   @return [String, nil]
  optional :created_at, String, api_name: :createdAt

  # @!attribute finished_at
  #
  #   @return [String, nil]
  optional :finished_at, String, api_name: :finishedAt

  # @!attribute has_related_promo
  #
  #   @return [Boolean, nil]
  optional :has_related_promo, Onlyfans::Internal::Type::Boolean, api_name: :hasRelatedPromo

  # @!attribute is_finished
  #
  #   @return [Boolean, nil]
  optional :is_finished, Onlyfans::Internal::Type::Boolean, api_name: :isFinished

  # @!attribute message
  #
  #   @return [String, nil]
  optional :message, String

  # @!attribute price
  #
  #   @return [Integer, nil]
  optional :price, Integer

  # @!attribute raw_message
  #
  #   @return [String, nil]
  optional :raw_message, String, api_name: :rawMessage

  # @!attribute subscribe_counts
  #
  #   @return [Integer, nil]
  optional :subscribe_counts, Integer, api_name: :subscribeCounts

  # @!attribute subscribe_days
  #
  #   @return [Integer, nil]
  optional :subscribe_days, Integer, api_name: :subscribeDays

  # @!attribute type
  #
  #   @return [String, nil]
  optional :type, String

  # @!method 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)
  #   @param id [Integer]
  #   @param can_claim [Boolean]
  #   @param claims_count [Integer]
  #   @param created_at [String]
  #   @param finished_at [String]
  #   @param has_related_promo [Boolean]
  #   @param is_finished [Boolean]
  #   @param message [String]
  #   @param price [Integer]
  #   @param raw_message [String]
  #   @param subscribe_counts [Integer]
  #   @param subscribe_days [Integer]
  #   @param type [String]
end

Instance Attribute Details

#can_claimBoolean?

Returns:

  • (Boolean, nil)


145
# File 'lib/onlyfans/models/promotion_list_response.rb', line 145

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

#claims_countInteger?

Returns:

  • (Integer, nil)


150
# File 'lib/onlyfans/models/promotion_list_response.rb', line 150

optional :claims_count, Integer, api_name: :claimsCount

#created_atString?

Returns:

  • (String, nil)


155
# File 'lib/onlyfans/models/promotion_list_response.rb', line 155

optional :created_at, String, api_name: :createdAt

#finished_atString?

Returns:

  • (String, nil)


160
# File 'lib/onlyfans/models/promotion_list_response.rb', line 160

optional :finished_at, String, api_name: :finishedAt

Returns:

  • (Boolean, nil)


165
# File 'lib/onlyfans/models/promotion_list_response.rb', line 165

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

#idInteger?

Returns:

  • (Integer, nil)


140
# File 'lib/onlyfans/models/promotion_list_response.rb', line 140

optional :id, Integer

#is_finishedBoolean?

Returns:

  • (Boolean, nil)


170
# File 'lib/onlyfans/models/promotion_list_response.rb', line 170

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

#messageString?

Returns:

  • (String, nil)


175
# File 'lib/onlyfans/models/promotion_list_response.rb', line 175

optional :message, String

#priceInteger?

Returns:

  • (Integer, nil)


180
# File 'lib/onlyfans/models/promotion_list_response.rb', line 180

optional :price, Integer

#raw_messageString?

Returns:

  • (String, nil)


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

optional :raw_message, String, api_name: :rawMessage

#subscribe_countsInteger?

Returns:

  • (Integer, nil)


190
# File 'lib/onlyfans/models/promotion_list_response.rb', line 190

optional :subscribe_counts, Integer, api_name: :subscribeCounts

#subscribe_daysInteger?

Returns:

  • (Integer, nil)


195
# File 'lib/onlyfans/models/promotion_list_response.rb', line 195

optional :subscribe_days, Integer, api_name: :subscribeDays

#typeString?

Returns:

  • (String, nil)


200
# File 'lib/onlyfans/models/promotion_list_response.rb', line 200

optional :type, String