Class: Rodsec::Wrapper::ModSecurityIntervention

Inherits:
ModSecurityIntervention_t
  • Object
show all
Defined in:
lib/rodsec/wrapper.rb

Instance Method Summary collapse

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

#logObject



141
142
143
144
# File 'lib/rodsec/wrapper.rb', line 141

def log
  ptr = super
  ptr.to_s unless ptr.null?
end

#to_hObject



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

#urlObject



146
147
148
149
# File 'lib/rodsec/wrapper.rb', line 146

def url
  ptr = super
  ptr.to_s unless ptr.null?
end