Class: Rodsec::Wrapper::ModSecurityIntervention
- Inherits:
-
ModSecurityIntervention_t
- Object
- Rodsec::Wrapper::ModSecurityIntervention
- Defined in:
- lib/rodsec/wrapper.rb
Instance Method Summary collapse
-
#initialize(*args) ⇒ ModSecurityIntervention
constructor
A new instance of ModSecurityIntervention.
- #log ⇒ Object
- #to_h ⇒ Object
- #url ⇒ Object
Constructor Details
#initialize(*args) ⇒ ModSecurityIntervention
Returns a new instance of ModSecurityIntervention.
112 113 114 115 |
# File 'lib/rodsec/wrapper.rb', line 112 def initialize( *args ) super to_ptr.free = Wrapper['msc_free_intervention'] end |
Instance Method Details
#log ⇒ Object
117 118 119 120 |
# File 'lib/rodsec/wrapper.rb', line 117 def log ptr = super ptr.to_s unless ptr.null? end |
#to_h ⇒ Object
127 128 129 130 131 |
# File 'lib/rodsec/wrapper.rb', line 127 def to_h @entity.instance_variable_get(:@members).map do |member| [member, (send member)] end.to_h end |
#url ⇒ Object
122 123 124 125 |
# File 'lib/rodsec/wrapper.rb', line 122 def url ptr = super ptr.to_s unless ptr.null? end |