Module: LingutestClient::Connection
- Included in:
- Client
- Defined in:
- lib/lingutest_client/connection.rb
Defined Under Namespace
Modules: ClassMethods
Class Method Summary collapse
Class Method Details
.included(base) ⇒ Object
31 32 33 34 35 36 37 38 39 40 41 |
# File 'lib/lingutest_client/connection.rb', line 31 def self.included(base) base.extend ClassMethods base.extend Forwardable base.class_eval do def_delegators :connection, :get, :post, :delete, :put, :patch end base.singleton_class.extend Forwardable base.singleton_class.class_eval do def_delegators :client, :get, :post, :delete, :put, :patch end end |