Class: Mikunyan::BaseObject

Inherits:
ObjectValue show all
Defined in:
lib/mikunyan/base_object.rb

Overview

Class for representing decoded base object

Instance Attribute Summary collapse

Attributes inherited from ObjectValue

#attr, #endian, #is_struct, #name, #type, #value

Instance Method Summary collapse

Methods inherited from ObjectValue

#[], #[]=, #array?, #initialize, #key?, #keys, #method_missing, #respond_to_missing?, #simplify, #struct?, #value?

Constructor Details

This class inherits a constructor from Mikunyan::ObjectValue

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class Mikunyan::ObjectValue

Instance Attribute Details

#object_entryObject

Returns the value of attribute object_entry.



8
9
10
# File 'lib/mikunyan/base_object.rb', line 8

def object_entry
  @object_entry
end

Instance Method Details

#object_nameObject



14
15
16
# File 'lib/mikunyan/base_object.rb', line 14

def object_name
  @attr['m_Name']&.value
end

#path_idObject



10
11
12
# File 'lib/mikunyan/base_object.rb', line 10

def path_id
  @object_entry&.path_id
end