Class: Moonbase::Models::SocialXValue::Data

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/moonbase/models/social_x_value.rb

Overview

See Also:

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(url:, username:) ⇒ Object

Some parameter documentations has been truncated, see Moonbase::Models::SocialXValue::Data for more details.

Social media profile information including both the full URL and extracted username.

Parameters:

  • url (String)

    The full URL to the X profile, starting with ‘x.com/’

  • username (String)

    The X username, up to 15 characters long, containing only lowercase letters (a-z



# File 'lib/moonbase/models/social_x_value.rb', line 44

Instance Attribute Details

#urlString

The full URL to the X profile, starting with ‘x.com/’

Returns:

  • (String)


34
# File 'lib/moonbase/models/social_x_value.rb', line 34

required :url, String

#usernameString

The X username, up to 15 characters long, containing only lowercase letters (a-z), uppercase letters (A-Z), numbers (0-9), and underscores (_). Does not include the ‘@’ symbol prefix.

Returns:

  • (String)


42
# File 'lib/moonbase/models/social_x_value.rb', line 42

required :username, String