Class: RelatedWord::Service
- Inherits:
-
Object
- Object
- RelatedWord::Service
- Defined in:
- lib/related_word/service.rb
Constant Summary collapse
- UnknownService =
Class.new(StandardError)
Class Method Summary collapse
Class Method Details
.get(service) ⇒ Object
4 5 6 7 8 9 10 11 |
# File 'lib/related_word/service.rb', line 4 def self.get(service) case service when :semantic Service::SemanticService.new else raise UnknownService end end |