lib/misp/org.rb in misp-0.1.0 vs lib/misp/org.rb in misp-0.1.1
- old
+ new
@@ -1,20 +1,28 @@
# frozen_string_literal: true
module MISP
class Org < Base
+ # @return [String]
attr_reader :id
+ # @return [String]
attr_reader :name
+ # @return [String]
attr_reader :uuid
def initialize(**attributes)
attributes = normalize_attributes(attributes)
@id = attributes.dig(:id)
@name = attributes.dig(:name)
@uuid = attributes.dig(:uuid)
end
+ #
+ # Returns a hash representation of the attribute data.
+ #
+ # @return [Hash]
+ #
def to_h
{
id: id,
name: name,
uuid: uuid,