Class: EndpointSecurity::TaggedUnion

Inherits:
Data
  • Object
show all
Defined in:
lib/endpoint_security/object_model.rb

Overview

Selected member of a tagged native union.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#kind ⇒ Object (readonly)

Returns the value of attribute kind

Returns:

  • (Object) —

    the current value of kind



34
35
36
# File 'lib/endpoint_security/object_model.rb', line 34

def kind
  @kind
end

#value ⇒ Object (readonly)

Returns the value of attribute value

Returns:

  • (Object) —

    the current value of value



34
35
36
# File 'lib/endpoint_security/object_model.rb', line 34

def value
  @value
end

Class Method Details

.__native_new(kind, value) ⇒ TaggedUnion

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Returns:



37
# File 'lib/endpoint_security/object_model.rb', line 37

def self.__native_new(kind, value) = new(kind: kind, value: value)