Class: Idcf::Ilb::Resources::Sslpolicy

Inherits:
Base
  • Object
show all
Defined in:
lib/idcf/ilb/resources/sslpolicy.rb

Overview

Sslpolicy resource class

Instance Attribute Summary

Attributes inherited from Base

#client

Instance Method Summary collapse

Methods inherited from Base

class_name, generate_readers, inherited, #initialize, #inspect, validator_class

Constructor Details

This class inherits a constructor from Idcf::Ilb::Resources::Base

Instance Method Details

#algorithmsArray<Sslpolicy>

Returns an array of sslpolicies.

Returns:

  • (Array<Sslpolicy>)

    an array of sslpolicies



7
8
9
10
11
# File 'lib/idcf/ilb/resources/sslpolicy.rb', line 7

def algorithms
  return @algorithm_objects if @algorithm_objects
  refresh
  @algorithm_objects = @algorithms.map { |algo| Sslalgorithm.new(client, algo) }
end

#refreshSslpolicy

Refresh this sslpolicy

Returns:



16
17
18
19
# File 'lib/idcf/ilb/resources/sslpolicy.rb', line 16

def refresh
  self.attributes = client.get_sslpolicy(id).body
  self
end