Sha256: a0bee2d72f1f2153306b48a799efabc977805df46e4040ae6b6005bc76baa1f6
Contents?: true
Size: 709 Bytes
Versions: 1
Compression:
Stored size: 709 Bytes
Contents
require 'dry-types' require 'dry-struct' module Freefeed module Types class PostCreate < Dry::Struct attribute :post do attribute :body, Types::Body attribute :attachments, Types::Attachments.meta(omittable: true) end attribute :meta do attribute :commentsDisabled, Types::Strict::Bool.default(false) attribute :feeds, Types::AccountName | Types::Feeds end end class PostUpdate < Dry::Struct attribute :post do attribute :body, Types::Body.meta(omittable: true) attribute :attachments, Types::Attachments.meta(omittable: true) attribute :feeds, Types::Feeds.meta(omittable: true) end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
freefeed-client-1.1.0 | lib/freefeed/types/post.rb |