Sha256: 200898886fee0dba2a05b32cce321f623d8cd1220e71c524f37b94c576e23129
Contents?: true
Size: 691 Bytes
Versions: 5
Compression:
Stored size: 691 Bytes
Contents
require 'alephant/broker/models/request/error_request.rb' require 'alephant/broker/models/request/get_request.rb' require 'alephant/broker/models/request/notfound_request.rb' require 'alephant/broker/models/request/post_request.rb' require 'alephant/broker/models/request/status_request.rb' module Alephant module Broker class RequestFactory def self.process(type) case type when :component GetRequest.new when :components_batch PostRequest.new when :status StatusRequest.new when :notfound NotFoundRequest.new when :error ErrorRequest.new end end end end end
Version data entries
5 entries across 5 versions & 1 rubygems