Module: ActionWebService::Container::Delegated::InstanceMethods
- Defined in:
- lib/action_web_service/container/delegated_container.rb
Overview
:nodoc:
Instance Method Summary collapse
Instance Method Details
#web_service_object(web_service_name) ⇒ Object
75 76 77 78 79 80 81 82 |
# File 'lib/action_web_service/container/delegated_container.rb', line 75 def web_service_object(web_service_name) info = self.class.web_services[web_service_name.to_sym] unless info raise(ContainerError, "no such web service '#{web_service_name}'") end service = info[:block] service ? self.instance_eval(&service) : info[:object] end |