Class: Kong::Plugin
- Inherits:
-
Object
- Object
- Kong::Plugin
- Includes:
- Base, BelongsToApi
- Defined in:
- lib/kong/plugin.rb
Constant Summary collapse
- ATTRIBUTE_NAMES =
%w(id api_id name config enabled consumer_id).freeze
- API_END_POINT =
'/plugins/'.freeze
Instance Attribute Summary
Attributes included from BelongsToApi
Attributes included from Base
Instance Method Summary collapse
-
#create ⇒ Object
Create resource.
-
#update ⇒ Object
update resource.
Methods included from BelongsToApi
Methods included from Base
#client, #create_or_update, #delete, #get, included, #initialize, #method_missing, #new?, #respond_to?, #save
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class Kong::Base
Instance Method Details
#create ⇒ Object
Create resource
12 13 14 15 |
# File 'lib/kong/plugin.rb', line 12 def create flatten_config super end |
#update ⇒ Object
update resource
18 19 20 21 |
# File 'lib/kong/plugin.rb', line 18 def update flatten_config super end |