Class: Idcf::Ilb::Resources::Sslpolicy
- Defined in:
- lib/idcf/ilb/resources/sslpolicy.rb
Overview
Sslpolicy resource class
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
-
#algorithms ⇒ Array<Sslpolicy>
An array of sslpolicies.
-
#refresh ⇒ Sslpolicy
Refresh this sslpolicy.
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
#algorithms ⇒ Array<Sslpolicy>
Returns 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 |
#refresh ⇒ Sslpolicy
Refresh this sslpolicy
16 17 18 19 |
# File 'lib/idcf/ilb/resources/sslpolicy.rb', line 16 def refresh self.attributes = client.get_sslpolicy(id).body self end |