Sha256: a50bdcc6ed94f4f99ac6e0250a56e26c65c01f24059522ffc9cb717ee3177b58

Contents?: true

Size: 269 Bytes

Versions: 5

Compression:

Stored size: 269 Bytes

Contents

# frozen_string_literal: true

module RubySky
  # Post representation
  class Post
    def initialize(raw:, repo:)
      @raw = raw
      @repo = repo
    end

    def http_uri
      "https://bsky.app/profile/#{@repo}/post/#{@raw.uri.split("/")[-1]}"
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
rubysky-0.5.0 lib/rubysky/post.rb
rubysky-0.4.0 lib/rubysky/post.rb
rubysky-0.3.0 lib/rubysky/post.rb
rubysky-0.2.1 lib/rubysky/post.rb
rubysky-0.2.0 lib/rubysky/post.rb