Class: Giphy::CLI
- Inherits:
-
Object
- Object
- Giphy::CLI
- Defined in:
- lib/giphy/cli.rb
Instance Method Summary collapse
-
#initialize(keyword) ⇒ CLI
constructor
A new instance of CLI.
- #search ⇒ Object
Constructor Details
#initialize(keyword) ⇒ CLI
Returns a new instance of CLI.
3 4 5 |
# File 'lib/giphy/cli.rb', line 3 def initialize(keyword) @keyword = keyword end |
Instance Method Details
#search ⇒ Object
7 8 9 |
# File 'lib/giphy/cli.rb', line 7 def search system "echo 'Showing the GIF on your default browser: #{url}' && open #{url}" end |