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.
136 137 138 139 |
# File 'lib/rodsec/wrapper.rb', line 136 def initialize( *args ) super to_ptr.free = Wrapper['msc_free_intervention'] end |
Instance Method Details
#log ⇒ Object
141 142 143 144 |
# File 'lib/rodsec/wrapper.rb', line 141 def log ptr = super ptr.to_s unless ptr.null? end |
#to_h ⇒ Object
151 152 153 154 155 |
# File 'lib/rodsec/wrapper.rb', line 151 def to_h @entity.instance_variable_get(:@members).map do |member| [member, (send member)] end.to_h end |
#url ⇒ Object
146 147 148 149 |
# File 'lib/rodsec/wrapper.rb', line 146 def url ptr = super ptr.to_s unless ptr.null? end |