Method: UpGuard::NodeGroup#nodes
- Defined in:
- lib/upguard/NodeGroup.rb
#nodes ⇒ Object
102 103 104 105 106 107 108 109 110 111 112 |
# File 'lib/upguard/NodeGroup.rb', line 102 def nodes obj = http_get("/api/v2/node_groups/#{self.id}/nodes.json") the_list = NodeList.new(self.appliance_url, self.appliance_api_key, self.sec_key, self.insecure) obj.each do |x| elem = Node.new(self.appliance_url, self.appliance_api_key, self.sec_key, self.insecure) elem.id = x["id"] if x.include?("id") elem.name = x["name"] if x.include?("name") the_list << elem end return the_list end |