Class: Infoblox::Host

Inherits:
Resource show all
Defined in:
lib/infoblox/host.rb

Instance Attribute Summary collapse

Attributes inherited from Resource

#_ref

Instance Method Summary collapse

Methods inherited from Resource

all, connection, connection=, #create, #delete, find, #get, #initialize, remote_attr_accessor, #remote_attribute_hash, remote_attrs, resource_uri, #resource_uri, wapi_object

Constructor Details

This class inherits a constructor from Infoblox::Resource

Instance Attribute Details

#viewObject

Returns the value of attribute view.



4
5
6
# File 'lib/infoblox/host.rb', line 4

def view
  @view
end

Instance Method Details

#add_ipv4addr(address) ⇒ Object



14
15
16
# File 'lib/infoblox/host.rb', line 14

def add_ipv4addr(address)
  ipv4addrs << Ipv4addr.new(:ipv4addr => address)
end

#ipv4addrsObject



18
19
20
# File 'lib/infoblox/host.rb', line 18

def ipv4addrs
  @ipv4addrs ||= []
end

#ipv4addrs=(attrs = []) ⇒ Object



8
9
10
11
12
# File 'lib/infoblox/host.rb', line 8

def ipv4addrs=(attrs=[])
  attrs.each do |att|
    ipv4addrs << Ipv4addr.new(att)
  end
end