since this class you've defined is called `Post`, it may make more sense for this objects of this class (e.g. `post_object = Post.new`) to contain information about Reddit posts and not the user's search query. Possible object-orientated refactor could look like this 
```ruby
class Posts
      attr_reader :author, :title

      def initialize author, title
        @author = auther
        @title = title
      end

      def to_s
        "TITLE: #{@title} \nPOSTED BY: #{@author} \n ***"
      end

      # 'self.' means its a Class method (i.e. Post.search)
      # method will return a JSON hash of stories
      def self.search input
          keywords = imput.split(' ').join('+').to_s #handles multi-word imput and number
          ...
          JSON.parse search
      end
end
```

**inside runner.rb**
```ruby
results = Post.search user_input
results.each do |post|
  reddit_post = Post.new post['data']['title'], post['data']['author']
  puts reddit_post # "puts" will call reddit_post.to_s
end
```