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

Returns a new instance of 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

Returns:

  • (String)

    the current value of 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

Returns:

  • (String)

    the current value of description



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

def description
  @description
end

#idString

OTX ID value for the pulse Record

Returns:

  • (String)

    the current value of id



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

Returns:



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

def indicators
  @indicators
end

#nameString

Pulse Name

Returns:

  • (String)

    the current value of 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

Returns:

  • (Array<String>)

    the current value of referenes



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

def referenes
  @referenes
end

#revisionString

Revision number of the OTX Pulse Record

Returns:

  • (String)

    the current value of revision



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

Returns:

  • (Array<String>)

    the current value of tags



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

def tags
  @tags
end