Class: OTX::Pulse

Inherits:
Type::Base show all
Defined in:
lib/otx_ruby/types/pulse.rb

Overview

AlienVault OTX Pulse Record

Author:

  • Stephen Kapp

Instance Attribute Summary collapse

Attributes inherited from Type::Base

#created, #modified

Instance Method Summary collapse

Constructor Details

#initialize(attributes = {}) ⇒ Pulse


19
20
21
22
23
24
25
26
27
28
29
30
# File 'lib/otx_ruby/types/pulse.rb', line 19

def initialize(attributes={})
  attributes.each do |key, value|
    if key != 'indicators'
      send("#{key}=", value)
    else
      @indicators = []
      value.each do |indicator|
        @indicators << OTX::Indicators.new(indicator)
      end
    end
  end
end

Instance Attribute Details

#author_nameString

Name of the pulse author_name


15
16
17
# File 'lib/otx_ruby/types/pulse.rb', line 15

def author_name
  @author_name
end

#descriptionString

Description of the pulse


15
16
17
# File 'lib/otx_ruby/types/pulse.rb', line 15

def description
  @description
end

#idString

OTX ID value for the pulse Record


15
16
17
# File 'lib/otx_ruby/types/pulse.rb', line 15

def id
  @id
end

#indicatorsArray<OTX::Indicators>

Array of the IoC attached to the OTX pulse


15
16
17
# File 'lib/otx_ruby/types/pulse.rb', line 15

def indicators
  @indicators
end

#nameString

Pulse Name


15
16
17
# File 'lib/otx_ruby/types/pulse.rb', line 15

def name
  @name
end

#referencesObject

Returns the value of attribute references


16
17
18
# File 'lib/otx_ruby/types/pulse.rb', line 16

def references
  @references
end

#referenesArray<String>

Array of references attached to the pulse


15
16
17
# File 'lib/otx_ruby/types/pulse.rb', line 15

def referenes
  @referenes
end

#revisionString

Revision number of the OTX Pulse Record


15
16
17
# File 'lib/otx_ruby/types/pulse.rb', line 15

def revision
  @revision
end

#tagsArray<String>

Array of 'tags' to describe the pulse


15
16
17
# File 'lib/otx_ruby/types/pulse.rb', line 15

def tags
  @tags
end