Class: Alchemrest::Request::Endpoint

Inherits:
Module
  • Object
show all
Defined in:
lib/alchemrest/request/endpoint.rb

Defined Under Namespace

Modules: InstanceMethods

Instance Method Summary collapse

Instance Method Details

#included(_) ⇒ Object



8
9
10
11
12
13
14
15
16
# File 'lib/alchemrest/request/endpoint.rb', line 8

def included(_)
  endpoint = self

  define_method(:endpoint_definition) do
    endpoint.endpoint_definition
  end

  include(InstanceMethods)
end