Class: EventMachine::Instagram::Request
- Inherits:
-
Object
- Object
- EventMachine::Instagram::Request
- Includes:
- Deferrable
- Defined in:
- lib/em-instagram/request.rb
Instance Method Summary collapse
-
#initialize(connection) ⇒ Request
constructor
A new instance of Request.
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 |