Class: RubySky::Post
- Inherits:
-
Object
- Object
- RubySky::Post
- Defined in:
- lib/rubysky/post.rb
Overview
Post representation
Instance Method Summary collapse
- #http_uri ⇒ Object
-
#initialize(raw:, repo:) ⇒ Post
constructor
A new instance of Post.
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_uri ⇒ Object
11 12 13 |
# File 'lib/rubysky/post.rb', line 11 def http_uri "https://bsky.app/profile/#{@repo}/post/#{@raw.uri.split("/")[-1]}" end |