Sha256: 4498034d3f846dac5bfc7747eca565f5cdcf663ca6a91528aee60545e69504f9

Contents?: true

Size: 228 Bytes

Versions: 2

Compression:

Stored size: 228 Bytes

Contents

module AnsibleTowerClient
  class Host < BaseModel
    def self.endpoint
      "hosts".freeze
    end

    def groups
      self.class.collection_for(api.get(File.join(self.class.endpoint, id.to_s, "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/host.rb
ansible_tower_client-0.1.0 lib/ansible_tower_client/host.rb