Sha256: a7752e6ea0d5b4bd7c996386021571661ac6da2ae3a293052c648286d902a3f4

Contents?: true

Size: 197 Bytes

Versions: 7

Compression:

Stored size: 197 Bytes

Contents

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

    def groups
      Collection.new(api).find_all_by_url(related["groups"])
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
ansible_tower_client-0.5.0 lib/ansible_tower_client/base_models/host.rb
ansible_tower_client-0.4.1 lib/ansible_tower_client/base_models/host.rb
ansible_tower_client-0.4.0 lib/ansible_tower_client/base_models/host.rb
ansible_tower_client-0.3.3 lib/ansible_tower_client/host.rb
ansible_tower_client-0.3.2 lib/ansible_tower_client/host.rb
ansible_tower_client-0.3.1 lib/ansible_tower_client/host.rb
ansible_tower_client-0.3.0 lib/ansible_tower_client/host.rb