Module: KongSchema::Resource::Upstream
Overview
Instance Method Summary collapse
- #all ⇒ Object
- #changed?(record, attributes) ⇒ Boolean
- #create(attributes) ⇒ Object
- #delete(record) ⇒ Object
- #identify(record) ⇒ Object
- #update(record, partial_attributes) ⇒ Object
Instance Method Details
#all ⇒ Object
21 22 23 |
# File 'lib/kong_schema/resource/upstream.rb', line 21 def all(*) Kong::Upstream.all end |
#changed?(record, attributes) ⇒ Boolean
29 30 31 |
# File 'lib/kong_schema/resource/upstream.rb', line 29 def changed?(record, attributes) Adapter.for(Kong::Upstream).changed?(record.attributes, attributes) end |
#create(attributes) ⇒ Object
25 26 27 |
# File 'lib/kong_schema/resource/upstream.rb', line 25 def create(attributes) Adapter.for(Kong::Upstream).create(attributes) end |
#delete(record) ⇒ Object
37 38 39 |
# File 'lib/kong_schema/resource/upstream.rb', line 37 def delete(record) Adapter.for(Kong::Upstream).delete(record) end |