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.



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

#logObject



117
118
119
120
# File 'lib/rodsec/wrapper.rb', line 117

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

#to_hObject



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

#urlObject



122
123
124
125
# File 'lib/rodsec/wrapper.rb', line 122

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