Class: PostForMe::Models::LinkedinConfigurationDto
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- PostForMe::Models::LinkedinConfigurationDto
- Defined in:
- lib/post_for_me/models/linkedin_configuration_dto.rb,
sig/post_for_me/models/linkedin_configuration_dto.rbs
Instance Attribute Summary collapse
-
#caption ⇒ Object?
Overrides the
captionfrom the post. -
#media ⇒ Array<PostForMe::Models::SocialPostMedia>?
Overrides the
mediafrom the post. -
#reshare_post_id ⇒ String?
LinkedIn UGC post id to reshare.
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(caption: nil, media: nil, reshare_post_id: nil) ⇒ Object
|
|
# File 'lib/post_for_me/models/linkedin_configuration_dto.rb', line 24
|
Instance Attribute Details
#caption ⇒ Object?
Overrides the caption from the post
10 |
# File 'lib/post_for_me/models/linkedin_configuration_dto.rb', line 10 optional :caption, PostForMe::Internal::Type::Unknown, nil?: true |
#media ⇒ Array<PostForMe::Models::SocialPostMedia>?
Overrides the media from the post
16 |
# File 'lib/post_for_me/models/linkedin_configuration_dto.rb', line 16 optional :media, -> { PostForMe::Internal::Type::ArrayOf[PostForMe::SocialPostMedia] }, nil?: true |
#reshare_post_id ⇒ String?
LinkedIn UGC post id to reshare. The caption is used as the reshare commentary.
22 |
# File 'lib/post_for_me/models/linkedin_configuration_dto.rb', line 22 optional :reshare_post_id, String, nil?: true |
Instance Method Details
#to_hash ⇒ {
23 |
# File 'sig/post_for_me/models/linkedin_configuration_dto.rbs', line 23
def to_hash: -> {
|