Class: Rddd::Services::Transports::Factory
- Inherits:
-
Object
- Object
- Rddd::Services::Transports::Factory
- Defined in:
- lib/rddd/services/transports/factory.rb
Class Method Summary collapse
Class Method Details
.build(namespace) ⇒ Object
10 11 12 13 14 15 16 17 18 |
# File 'lib/rddd/services/transports/factory.rb', line 10 def self.build(namespace) remote = Configuration.instance.remote_services.find do |remote| remote[:namespace] == namespace end Transports::HttpJson.new( :endpoint => remote[:endpoint] ) end |