-
-
Save ianks/34f72da118bf565aef43b2e56ec40236 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Post | |
def initialize(api_client:) | |
@api_client = api_client | |
end | |
def comments(approved: true, status: :unread, **kwargs) | |
@api_client.fetch_comments(approved: approved, status: status, **kwargs) | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment