Class: Speechmatics::ApiFactory
- Inherits:
-
Object
- Object
- Speechmatics::ApiFactory
- Defined in:
- lib/speechmatics/api_factory.rb
Class Method Summary collapse
Class Method Details
.api(name, parent, options = {}) {|api| ... } ⇒ Object
6 7 8 9 10 11 |
# File 'lib/speechmatics/api_factory.rb', line 6 def self.api(name, parent, ={}, &block) api = name.constantize.new(parent.) api.() yield(api) if block_given? api end |