Sha256: 7b6af467324b95e3f3c9e37c0ceb7970fbb8c877d186fb9839e0f57dc7fc1037
Contents?: true
Size: 438 Bytes
Versions: 1
Compression:
Stored size: 438 Bytes
Contents
# frozen_string_literal: true module MISP class Orgc < Base attr_reader :id attr_reader :name attr_reader :uuid def initialize(**attributes) attributes = normalize_attributes(attributes) @id = attributes.dig(:id) @name = attributes.dig(:name) @uuid = attributes.dig(:uuid) end def to_h { id: id, name: name, uuid: uuid, }.compact end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
misp-0.1.0 | lib/misp/orgc.rb |