Class: Infoblox::Host
Instance Attribute Summary collapse
-
#view ⇒ Object
Returns the value of attribute view.
Attributes inherited from Resource
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
#view ⇒ Object
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 |
#ipv4addrs ⇒ Object
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 |