Sha256: 1f68c67e9c89818125e21c1afd940df95dd1e5756ce7d0a77440eef5f95d8eba
Contents?: true
Size: 1.47 KB
Versions: 1
Compression:
Stored size: 1.47 KB
Contents
# frozen_string_literal: true module MISP class GalaxyCluster < Base # @return [String] attr_reader :id # @return [String] attr_reader :uuid # @return [String] attr_reader :type # @return [String] attr_reader :value # @return [String] attr_reader :tag_name # @return [String] attr_reader :description # @return [String] attr_reader :galaxy_id # @return [String] attr_reader :source # @return [Array<String>] attr_reader :authors # @return [String] attr_reader :tag_id # @return [Hash] attr_reader :meta def initialize(**attributes) attributes = normalize_attributes(**attributes) @id = attributes[:id] @uuid = attributes[:uuid] @type = attributes[:type] @value = attributes[:value] @tag_name = attributes[:tag_name] @description = attributes[:description] @galaxy_id = attributes[:galaxy_id] @source = attributes[:source] @authors = attributes[:authors] @tag_id = attributes[:tag_id] @meta = attributes[:meta] end # # Returns a hash representation of the attribute data. # # @return [Hash] # def to_h { id: id, uuid: uuid, type: type, value: value, tag_name: tag_name, description: description, galaxy_id: galaxy_id, source: source, authors: authors, tag_id: tag_id, meta: meta, }.compact end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
misp-0.1.4 | lib/misp/galaxy_cluster.rb |