Class: Puppet::Util::NetworkDevice::F5::Device
- Inherits:
 - 
      Object
      
        
- Object
 - Puppet::Util::NetworkDevice::F5::Device
 
 
- Defined in:
 - lib/puppet/util/network_device/f5/device.rb
 
Instance Attribute Summary collapse
- 
  
    
      #connection  ⇒ Object 
    
    
  
  
  
  
    
      readonly
    
    
  
  
  
  
  
  
    
Returns the value of attribute connection.
 - 
  
    
      #transport  ⇒ Object 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
Returns the value of attribute transport.
 - 
  
    
      #url  ⇒ Object 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
Returns the value of attribute url.
 
Instance Method Summary collapse
- #facts ⇒ Object
 - 
  
    
      #initialize(url, options = {})  ⇒ Device 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    
A new instance of Device.
 
Constructor Details
#initialize(url, options = {}) ⇒ Device
Returns a new instance of Device.
      10 11 12 13 14 15 16 17 18  | 
    
      # File 'lib/puppet/util/network_device/f5/device.rb', line 10 def initialize(url, = {}) @autoloader = Puppet::Util::Autoload.new( self, "puppet/util/network_device/transport" ) if @autoloader.load("f5") @transport = Puppet::Util::NetworkDevice::Transport::F5.new(url,[:debug]) end end  | 
  
Instance Attribute Details
#connection ⇒ Object (readonly)
Returns the value of attribute connection.
      7 8 9  | 
    
      # File 'lib/puppet/util/network_device/f5/device.rb', line 7 def connection @connection end  | 
  
#transport ⇒ Object
Returns the value of attribute transport.
      8 9 10  | 
    
      # File 'lib/puppet/util/network_device/f5/device.rb', line 8 def transport @transport end  | 
  
#url ⇒ Object
Returns the value of attribute url.
      8 9 10  | 
    
      # File 'lib/puppet/util/network_device/f5/device.rb', line 8 def url @url end  | 
  
Instance Method Details
#facts ⇒ Object
      20 21 22 23 24  | 
    
      # File 'lib/puppet/util/network_device/f5/device.rb', line 20 def facts @facts ||= Puppet::Util::NetworkDevice::F5::Facts.new(@transport) return @facts.retrieve end  |