Class: Giphy

Inherits:
EDI::Service show all
Defined in:
lib/edi/services/giphy.rb

Instance Attribute Summary collapse

Attributes inherited from EDI::Service

#message, #response

Instance Method Summary collapse

Methods inherited from EDI::Service

#initialize, #method_missing

Methods included from EDI::Environment

included, #validate_environment

Methods included from EDI::DSL

included

Constructor Details

This class inherits a constructor from EDI::Service

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class EDI::Service

Instance Attribute Details

#request_urlObject

Returns the value of attribute request_url.



5
6
7
# File 'lib/edi/services/giphy.rb', line 5

def request_url
  @request_url
end

Instance Method Details

#runObject



6
7
8
# File 'lib/edi/services/giphy.rb', line 6

def run
  EDI.get(request_url).response["data"]["image_url"]
end