class OTX::Indicator::CorrelationRule
Public Class Methods
new(attributes={})
click to toggle source
# File lib/otx_ruby/types/correlation_rule.rb, line 4 def initialize(attributes={}) attributes.each do |key, value| unless self.respond_to?(key) self.class.send(:attr_accessor, key) end if key == 'pulse_info' send("#{key.downcase}=", OTX::Indicator::CVE::PulseInfo.new(value)) elsif key == 'base_indicator' send("#{key.downcase}=", OTX::Indicator::CVE::BaseIndicator.new(value)) else send("#{key.downcase}=", value) end end end