Class: Kongfigure::Resources::Consumers::ACL
- Inherits:
-
Base
- Object
- Base
- Kongfigure::Resources::Consumers::ACL
show all
- Defined in:
- lib/kongfigure/resources/consumers/acl.rb
Instance Attribute Summary collapse
Attributes inherited from Base
#id, #kongfigure_ignore_fields, #plugins, #unchanged, #updated
Class Method Summary
collapse
Instance Method Summary
collapse
Methods inherited from Base
#==, build_all, #display_name, #has_to_be_deleted?, #initialize, #mark_as_unchanged, #mark_as_updated
Instance Attribute Details
#group ⇒ Object
Returns the value of attribute group.
4
5
6
|
# File 'lib/kongfigure/resources/consumers/acl.rb', line 4
def group
@group
end
|
Class Method Details
.build(hash) ⇒ Object
6
7
8
9
10
|
# File 'lib/kongfigure/resources/consumers/acl.rb', line 6
def self.build(hash)
acl = new(hash["id"])
acl.group = hash["group"]
acl
end
|
Instance Method Details
#api_attributes ⇒ Object
24
25
26
27
28
|
# File 'lib/kongfigure/resources/consumers/acl.rb', line 24
def api_attributes
{
"group" => group
}.compact
end
|
#api_name ⇒ Object
20
21
22
|
# File 'lib/kongfigure/resources/consumers/acl.rb', line 20
def api_name
"acls"
end
|
#identifier ⇒ Object
16
17
18
|
# File 'lib/kongfigure/resources/consumers/acl.rb', line 16
def identifier
group
end
|
#plugin_allowed? ⇒ Boolean
12
13
14
|
# File 'lib/kongfigure/resources/consumers/acl.rb', line 12
def plugin_allowed?
false
end
|