Class: RubySky::Post

Inherits:
Object
  • Object
show all
Defined in:
lib/rubysky/post.rb

Overview

Post representation

Instance Method Summary collapse

Constructor Details

#initialize(raw:, repo:) ⇒ Post

Returns a new instance of Post.



6
7
8
9
# File 'lib/rubysky/post.rb', line 6

def initialize(raw:, repo:)
  @raw = raw
  @repo = repo
end

Instance Method Details

#http_uriObject



11
12
13
# File 'lib/rubysky/post.rb', line 11

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