Sha256: 5f0048410c57412db276a7018dfc935983ba407f0564c79edc4e87f71c396963

Contents?: true

Size: 249 Bytes

Versions: 2

Compression:

Stored size: 249 Bytes

Contents

module AnsibleTowerClient
  class Inventory < BaseModel
    def self.endpoint
      "inventories".freeze
    end

    def root_groups
      self.class.collection_for(api.get(File.join(self.class.endpoint, id.to_s, "root_groups")))
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
ansible_tower_client-0.2.0 lib/ansible_tower_client/inventory.rb
ansible_tower_client-0.1.0 lib/ansible_tower_client/inventory.rb