Class: MotionGiphy::Request

Inherits:
Object
  • Object
show all
Defined in:
lib/motion-giphy/request.rb

Instance Method Summary collapse

Instance Method Details

#get(path, options = {}, &block) ⇒ Object



3
4
5
6
7
# File 'lib/motion-giphy/request.rb', line 3

def get(path, options = {}, &block)
  client.get(path, create_options(options)) do |result|
    block.call response.build_with_result(result)
  end
end