Class: Onlyfans::Models::StoryCreateResponse::Data::Media
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- Onlyfans::Models::StoryCreateResponse::Data::Media
- Defined in:
- lib/onlyfans/models/story_create_response.rb,
sig/onlyfans/models/story_create_response.rbs
Defined Under Namespace
Classes: Files
Instance Attribute Summary collapse
- #can_view ⇒ Boolean?
- #converted_to_video ⇒ Boolean?
- #created_at ⇒ String?
- #duration ⇒ Integer?
- #files ⇒ Onlyfans::Models::StoryCreateResponse::Data::Media::Files?
- #has_custom_preview ⇒ Boolean?
- #has_error ⇒ Boolean?
- #id ⇒ Integer?
- #is_ready ⇒ Boolean?
- #type ⇒ String?
Instance Method Summary collapse
- #initialize(id: nil, can_view: nil, converted_to_video: nil, created_at: nil, duration: nil, files: nil, has_custom_preview: nil, has_error: nil, is_ready: nil, type: nil) ⇒ Object constructor
- #to_hash ⇒ {
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_view: nil, converted_to_video: nil, created_at: nil, duration: nil, files: nil, has_custom_preview: nil, has_error: nil, is_ready: nil, type: nil) ⇒ Object
240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 |
# File 'lib/onlyfans/models/story_create_response.rb', line 240 class Media < Onlyfans::Internal::Type::BaseModel # @!attribute id # # @return [Integer, nil] optional :id, Integer # @!attribute can_view # # @return [Boolean, nil] optional :can_view, Onlyfans::Internal::Type::Boolean, api_name: :canView # @!attribute converted_to_video # # @return [Boolean, nil] optional :converted_to_video, Onlyfans::Internal::Type::Boolean, api_name: :convertedToVideo # @!attribute created_at # # @return [String, nil] optional :created_at, String, api_name: :createdAt # @!attribute duration # # @return [Integer, nil] optional :duration, Integer # @!attribute files # # @return [Onlyfans::Models::StoryCreateResponse::Data::Media::Files, nil] optional :files, -> { Onlyfans::Models::StoryCreateResponse::Data::Media::Files } # @!attribute has_custom_preview # # @return [Boolean, nil] optional :has_custom_preview, Onlyfans::Internal::Type::Boolean, api_name: :hasCustomPreview # @!attribute has_error # # @return [Boolean, nil] optional :has_error, Onlyfans::Internal::Type::Boolean, api_name: :hasError # @!attribute is_ready # # @return [Boolean, nil] optional :is_ready, Onlyfans::Internal::Type::Boolean, api_name: :isReady # @!attribute type # # @return [String, nil] optional :type, String # @!method initialize(id: nil, can_view: nil, converted_to_video: nil, created_at: nil, duration: nil, files: nil, has_custom_preview: nil, has_error: nil, is_ready: nil, type: nil) # @param id [Integer] # @param can_view [Boolean] # @param converted_to_video [Boolean] # @param created_at [String] # @param duration [Integer] # @param files [Onlyfans::Models::StoryCreateResponse::Data::Media::Files] # @param has_custom_preview [Boolean] # @param has_error [Boolean] # @param is_ready [Boolean] # @param type [String] # @see Onlyfans::Models::StoryCreateResponse::Data::Media#files class Files < Onlyfans::Internal::Type::BaseModel # @!attribute full # # @return [Onlyfans::Models::StoryCreateResponse::Data::Media::Files::Full, nil] optional :full, -> { Onlyfans::Models::StoryCreateResponse::Data::Media::Files::Full } # @!attribute preview # # @return [String, nil] optional :preview, String, nil?: true # @!attribute square_preview # # @return [String, nil] optional :square_preview, String, api_name: :squarePreview, nil?: true # @!attribute thumb # # @return [String, nil] optional :thumb, String, nil?: true # @!method initialize(full: nil, preview: nil, square_preview: nil, thumb: nil) # @param full [Onlyfans::Models::StoryCreateResponse::Data::Media::Files::Full] # @param preview [String, nil] # @param square_preview [String, nil] # @param thumb [String, nil] # @see Onlyfans::Models::StoryCreateResponse::Data::Media::Files#full class Full < Onlyfans::Internal::Type::BaseModel # @!attribute height # # @return [Integer, nil] optional :height, Integer # @!attribute size # # @return [Integer, nil] optional :size, Integer # @!attribute sources # # @return [Array<Object>, nil] optional :sources, Onlyfans::Internal::Type::ArrayOf[Onlyfans::Internal::Type::Unknown] # @!attribute url # # @return [String, nil] optional :url, String, nil?: true # @!attribute width # # @return [Integer, nil] optional :width, Integer # @!method initialize(height: nil, size: nil, sources: nil, url: nil, width: nil) # @param height [Integer] # @param size [Integer] # @param sources [Array<Object>] # @param url [String, nil] # @param width [Integer] end end end |
Instance Attribute Details
#can_view ⇒ Boolean?
249 |
# File 'lib/onlyfans/models/story_create_response.rb', line 249 optional :can_view, Onlyfans::Internal::Type::Boolean, api_name: :canView |
#converted_to_video ⇒ Boolean?
254 |
# File 'lib/onlyfans/models/story_create_response.rb', line 254 optional :converted_to_video, Onlyfans::Internal::Type::Boolean, api_name: :convertedToVideo |
#created_at ⇒ String?
259 |
# File 'lib/onlyfans/models/story_create_response.rb', line 259 optional :created_at, String, api_name: :createdAt |
#duration ⇒ Integer?
264 |
# File 'lib/onlyfans/models/story_create_response.rb', line 264 optional :duration, Integer |
#files ⇒ Onlyfans::Models::StoryCreateResponse::Data::Media::Files?
269 |
# File 'lib/onlyfans/models/story_create_response.rb', line 269 optional :files, -> { Onlyfans::Models::StoryCreateResponse::Data::Media::Files } |
#has_custom_preview ⇒ Boolean?
274 |
# File 'lib/onlyfans/models/story_create_response.rb', line 274 optional :has_custom_preview, Onlyfans::Internal::Type::Boolean, api_name: :hasCustomPreview |
#has_error ⇒ Boolean?
279 |
# File 'lib/onlyfans/models/story_create_response.rb', line 279 optional :has_error, Onlyfans::Internal::Type::Boolean, api_name: :hasError |
#id ⇒ Integer?
244 |
# File 'lib/onlyfans/models/story_create_response.rb', line 244 optional :id, Integer |
#is_ready ⇒ Boolean?
284 |
# File 'lib/onlyfans/models/story_create_response.rb', line 284 optional :is_ready, Onlyfans::Internal::Type::Boolean, api_name: :isReady |
#type ⇒ String?
289 |
# File 'lib/onlyfans/models/story_create_response.rb', line 289 optional :type, String |
Instance Method Details
#to_hash ⇒ {
368 |
# File 'sig/onlyfans/models/story_create_response.rbs', line 368
def to_hash: -> {
|