Class: EventMachine::Instagram::Request

Inherits:
Object
  • Object
show all
Includes:
Deferrable
Defined in:
lib/em-instagram/request.rb

Instance Method Summary collapse

Constructor Details

#initialize(connection) ⇒ Request

Returns a new instance of Request.



6
7
8
9
# File 'lib/em-instagram/request.rb', line 6

def initialize(connection)
  connection.errback { |response| fail response.error }
  connection.callback { |response| process_instagram_response response }
end