Class: Rbeapi::Api::Aaa

Inherits:
Entity
  • Object
show all
Defined in:
lib/rbeapi/api/aaa.rb

Instance Attribute Summary

Attributes inherited from Entity

#config, #error, #node

Instance Method Summary collapse

Methods inherited from Entity

#configure, #get_block, #initialize, instance

Constructor Details

This class inherits a constructor from Rbeapi::Api::Entity

Instance Method Details

#getObject


42
43
44
45
46
# File 'lib/rbeapi/api/aaa.rb', line 42

def get
  response = {}
  response[:groups] = groups.getall
  response
end

#groupsObject


48
49
50
51
52
# File 'lib/rbeapi/api/aaa.rb', line 48

def groups
  return @groups if @groups
  @groups = AaaGroups.new node
  @groups
end