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



30
31
32
33
34
35
36
37
38
39
40
41
# File 'lib/otx_ruby/types/pulse.rb', line 30

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

Instance Attribute Details

#adversaryString



24
25
26
# File 'lib/otx_ruby/types/pulse.rb', line 24

def adversary
  @adversary
end

#author_nameString

Name of the pulse author_name



24
25
26
# File 'lib/otx_ruby/types/pulse.rb', line 24

def author_name
  @author_name
end

#descriptionString

Description of the pulse



24
25
26
# File 'lib/otx_ruby/types/pulse.rb', line 24

def description
  @description
end

#group_idString



24
25
26
# File 'lib/otx_ruby/types/pulse.rb', line 24

def group_id
  @group_id
end

#group_nameString



24
25
26
# File 'lib/otx_ruby/types/pulse.rb', line 24

def group_name
  @group_name
end

#groupsArray<String>



24
25
26
# File 'lib/otx_ruby/types/pulse.rb', line 24

def groups
  @groups
end

#idString

OTX ID value for the pulse Record



24
25
26
# File 'lib/otx_ruby/types/pulse.rb', line 24

def id
  @id
end

#in_groupBoolean



24
25
26
# File 'lib/otx_ruby/types/pulse.rb', line 24

def in_group
  @in_group
end

#indicatorsArray<OTX::Indicators>

Array of the IoC attached to the OTX pulse



24
25
26
# File 'lib/otx_ruby/types/pulse.rb', line 24

def indicators
  @indicators
end

#industriesArray<String>



24
25
26
# File 'lib/otx_ruby/types/pulse.rb', line 24

def industries
  @industries
end

#nameString

Pulse Name



24
25
26
# File 'lib/otx_ruby/types/pulse.rb', line 24

def name
  @name
end

#publicBoolean

Privacy setting



24
25
26
# File 'lib/otx_ruby/types/pulse.rb', line 24

def public
  @public
end

#referencesObject

Returns the value of attribute references.



25
26
27
# File 'lib/otx_ruby/types/pulse.rb', line 25

def references
  @references
end

#referenesArray<String>

Array of references attached to the pulse



24
25
26
# File 'lib/otx_ruby/types/pulse.rb', line 24

def referenes
  @referenes
end

#revisionString

Revision number of the OTX Pulse Record



24
25
26
# File 'lib/otx_ruby/types/pulse.rb', line 24

def revision
  @revision
end

#tagsArray<String>

Array of ‘tags’ to describe the pulse



24
25
26
# File 'lib/otx_ruby/types/pulse.rb', line 24

def tags
  @tags
end

#targeted_countriesArray<String>



24
25
26
# File 'lib/otx_ruby/types/pulse.rb', line 24

def targeted_countries
  @targeted_countries
end

#tlpString

Traffic light protocol color as appropriate to U.S. DHS



24
25
26
# File 'lib/otx_ruby/types/pulse.rb', line 24

def tlp
  @tlp
end