Class: Giphy
- Inherits:
-
Jarvis::Service
- Object
- Jarvis::Service
- Giphy
- Defined in:
- lib/jarvis/services/giphy.rb
Instance Attribute Summary collapse
-
#request_url ⇒ Object
Returns the value of attribute request_url.
Attributes inherited from Jarvis::Service
Instance Method Summary collapse
Methods inherited from Jarvis::Service
environment, #initialize, interpreter_pattern, invoke_with, #method_missing, phrases, #validate_environment
Constructor Details
This class inherits a constructor from Jarvis::Service
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class Jarvis::Service
Instance Attribute Details
#request_url ⇒ Object
Returns the value of attribute request_url.
5 6 7 |
# File 'lib/jarvis/services/giphy.rb', line 5 def request_url @request_url end |
Instance Method Details
#run ⇒ Object
6 7 8 |
# File 'lib/jarvis/services/giphy.rb', line 6 def run Jarvis.get(request_url).response["data"]["image_url"] end |