Class: Onlyfans::Models::ChatListResponse::Data::LastMessage::FromUser

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/onlyfans/models/chat_list_response.rb,
sig/onlyfans/models/chat_list_response.rbs

Overview

See Also:

  • Onlyfans::Models::ChatListResponse::Data::LastMessage#from_user

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, _view: nil) ⇒ FromUser

Returns a new instance of FromUser.

Parameters:

  • id (Integer) (defaults to: nil)
  • _view (String) (defaults to: nil)
  • id: (Integer) (defaults to: nil)
  • _view: (String) (defaults to: nil)


# File 'lib/onlyfans/models/chat_list_response.rb', line 1529

Instance Attribute Details

#_view ⇒ String?

Parameters:

  • (String)

Returns:

  • (String, nil)


1527
# File 'lib/onlyfans/models/chat_list_response.rb', line 1527

optional :_view, String

#id ⇒ Integer?

Parameters:

  • (Integer)

Returns:

  • (Integer, nil)


1522
# File 'lib/onlyfans/models/chat_list_response.rb', line 1522

optional :id, Integer

Instance Method Details

#to_hash ⇒ { id: Integer, _view: String }

Returns:

  • ({ id: Integer, _view: String })


1794
# File 'sig/onlyfans/models/chat_list_response.rbs', line 1794

def to_hash: -> { id: Integer, _view: String }