Class: PostForMe::Models::SocialPostResult::PlatformData
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- PostForMe::Models::SocialPostResult::PlatformData
- Defined in:
- lib/post_for_me/models/social_post_result.rb,
sig/post_for_me/models/social_post_result.rbs
Overview
Instance Attribute Summary collapse
-
#id ⇒ String?
Platform-specific ID.
-
#url ⇒ String?
URL of the posted content.
Instance Method Summary collapse
-
#initialize(id: nil, url: nil) ⇒ PlatformData
constructor
Platform-specific data.
- #to_hash ⇒ { id: String, url: String }
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
|
|
# File 'lib/post_for_me/models/social_post_result.rb', line 86
|
Instance Attribute Details
#id ⇒ String?
Platform-specific ID
78 |
# File 'lib/post_for_me/models/social_post_result.rb', line 78 optional :id, String |
#url ⇒ String?
URL of the posted content
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 }
67 |
# File 'sig/post_for_me/models/social_post_result.rbs', line 67
def to_hash: -> { id: String, url: String }
|