Class: PostForMe::Models::SocialPostResult::PlatformData

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

Overview

See Also:

  • PostForMe::Models::SocialPostResult#platform_data

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, url: nil) ⇒ PlatformData

Platform-specific data

Parameters:

  • id (String) (defaults to: nil)

    Platform-specific ID

  • url (String) (defaults to: nil)

    URL of the posted content

  • id: (String) (defaults to: nil)
  • url: (String) (defaults to: nil)


# File 'lib/post_for_me/models/social_post_result.rb', line 86

Instance Attribute Details

#idString?

Platform-specific ID

Parameters:

  • (String)

Returns:

  • (String, nil)


78
# File 'lib/post_for_me/models/social_post_result.rb', line 78

optional :id, String

#urlString?

URL of the posted content

Parameters:

  • (String)

Returns:

  • (String, nil)


84
# File 'lib/post_for_me/models/social_post_result.rb', line 84

optional :url, String

Instance Method Details

#to_hash{ id: String, url: String }

Returns:

  • ({ id: String, url: String })


67
# File 'sig/post_for_me/models/social_post_result.rbs', line 67

def to_hash: -> { id: String, url: String }