Class: RedHatSupportLib::Brokers::Group

Inherits:
Broker
  • Object
show all
Defined in:
lib/brokers/group.rb

Instance Attribute Summary

Attributes inherited from Broker

#connection

Instance Method Summary collapse

Methods inherited from Broker

#get_id

Constructor Details

#initialize(connection) ⇒ Group

Returns a new instance of Group.



4
5
6
# File 'lib/brokers/group.rb', line 4

def initialize(connection)
  super
end

Instance Method Details

#listObject



8
9
10
11
# File 'lib/brokers/group.rb', line 8

def list
  result = @connection.get("/rs/groups", {:accept => :json})
  result['group']
end