Class: Onlyfans::Models::Posts::CommentCreateResponse::Data

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

Overview

See Also:

Defined Under Namespace

Classes: Author

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, author: nil, can_like: nil, changed_at: nil, giphy_id: nil, is_liked: nil, is_liked_by_author: nil, is_pinned: nil, likes_count: nil, posted_at: nil, text: nil) ⇒ Object

Parameters:

  • id (Integer) (defaults to: nil)
  • author (Onlyfans::Models::Posts::CommentCreateResponse::Data::Author) (defaults to: nil)
  • can_like (Boolean) (defaults to: nil)
  • changed_at (String) (defaults to: nil)
  • giphy_id (String, nil) (defaults to: nil)
  • is_liked (Boolean) (defaults to: nil)
  • is_liked_by_author (Boolean) (defaults to: nil)
  • is_pinned (Boolean) (defaults to: nil)
  • likes_count (Integer) (defaults to: nil)
  • posted_at (String) (defaults to: nil)
  • text (String) (defaults to: nil)


# File 'lib/onlyfans/models/posts/comment_create_response.rb', line 171

Instance Attribute Details

#authorOnlyfans::Models::Posts::CommentCreateResponse::Data::Author?



124
# File 'lib/onlyfans/models/posts/comment_create_response.rb', line 124

optional :author, -> { Onlyfans::Models::Posts::CommentCreateResponse::Data::Author }

#can_likeBoolean?

Returns:

  • (Boolean, nil)


129
# File 'lib/onlyfans/models/posts/comment_create_response.rb', line 129

optional :can_like, Onlyfans::Internal::Type::Boolean, api_name: :canLike

#changed_atString?

Returns:

  • (String, nil)


134
# File 'lib/onlyfans/models/posts/comment_create_response.rb', line 134

optional :changed_at, String, api_name: :changedAt

#giphy_idString?

Returns:

  • (String, nil)


139
# File 'lib/onlyfans/models/posts/comment_create_response.rb', line 139

optional :giphy_id, String, api_name: :giphyId, nil?: true

#idInteger?

Returns:

  • (Integer, nil)


119
# File 'lib/onlyfans/models/posts/comment_create_response.rb', line 119

optional :id, Integer

#is_likedBoolean?

Returns:

  • (Boolean, nil)


144
# File 'lib/onlyfans/models/posts/comment_create_response.rb', line 144

optional :is_liked, Onlyfans::Internal::Type::Boolean, api_name: :isLiked

#is_liked_by_authorBoolean?

Returns:

  • (Boolean, nil)


149
# File 'lib/onlyfans/models/posts/comment_create_response.rb', line 149

optional :is_liked_by_author, Onlyfans::Internal::Type::Boolean, api_name: :isLikedByAuthor

#is_pinnedBoolean?

Returns:

  • (Boolean, nil)


154
# File 'lib/onlyfans/models/posts/comment_create_response.rb', line 154

optional :is_pinned, Onlyfans::Internal::Type::Boolean, api_name: :isPinned

#likes_countInteger?

Returns:

  • (Integer, nil)


159
# File 'lib/onlyfans/models/posts/comment_create_response.rb', line 159

optional :likes_count, Integer, api_name: :likesCount

#posted_atString?

Returns:

  • (String, nil)


164
# File 'lib/onlyfans/models/posts/comment_create_response.rb', line 164

optional :posted_at, String, api_name: :postedAt

#textString?

Returns:

  • (String, nil)


169
# File 'lib/onlyfans/models/posts/comment_create_response.rb', line 169

optional :text, String