Module: LingutestClient::API::Operations::List
- Defined in:
- lib/lingutest_client/api/operations/list.rb
Class Method Summary collapse
Class Method Details
.module(list_type) ⇒ Object
8 9 10 11 12 13 14 15 16 17 18 |
# File 'lib/lingutest_client/api/operations/list.rb', line 8 def module(list_type) Module.new do class_methods_module = Module.new class_methods_module.define_method :list do list_type.new(Client.get(resource_url).body) end define_singleton_method :included do |base| base.extend class_methods_module end end end |