Class: AFMotion::HTTP

Inherits:
Object
  • Object
show all
Defined in:
lib/afmotion/http.rb

Direct Known Subclasses

Image, JSON, PLIST, XML

Class Method Summary collapse

Class Method Details

.configure_manager(manager) ⇒ Object


13
14
15
# File 'lib/afmotion/http.rb', line 13

def self.configure_manager(manager)
  manager.http!
end

.operation_managerObject


5
6
7
8
9
10
11
# File 'lib/afmotion/http.rb', line 5

def self.operation_manager
  @operation_manager ||= begin
    manager = AFHTTPRequestOperationManager.manager
    configure_manager(manager)
    manager
  end
end