Class: Onlyfans::Models::Posts::CommentCreateResponse::Meta::Credits

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

Overview

See Also:

  • Onlyfans::Models::Posts::CommentCreateResponse::Meta#_credits

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 ⇒ Object



102
# File 'sig/onlyfans/models/posts/comment_create_response.rbs', line 102

def initialize: (

Instance Attribute Details

#balance ⇒ Integer?

Parameters:

  • (Integer)

Returns:

  • (Integer, nil)


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

optional :balance, Integer

#note ⇒ String?

Parameters:

  • (String)

Returns:

  • (String, nil)


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

optional :note, String

#used ⇒ Integer?

Parameters:

  • (Integer)

Returns:

  • (Integer, nil)


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

optional :used, Integer

Instance Method Details

#to_hash ⇒ { balance: Integer, note: String, used: Integer }

Returns:

  • ({ balance: Integer, note: String, used: Integer })


108
# File 'sig/onlyfans/models/posts/comment_create_response.rbs', line 108

def to_hash: -> { balance: Integer, note: String, used: Integer }