Sha256: 5e27eea6fd2f06d2e3fb81396b0ce6724450f47f14cca5e7109db52c9c27fdfa
Contents?: true
Size: 437 Bytes
Versions: 1
Compression:
Stored size: 437 Bytes
Contents
# frozen_string_literal: true module MISP class Org < 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/org.rb |