Class: Cadenya::Types::ObjectiveEventData_MemoryRead
- Inherits:
-
Object
- Object
- Cadenya::Types::ObjectiveEventData_MemoryRead
- Defined in:
- lib/cadenya/types.rb
Instance Attribute Summary collapse
-
#memory_read ⇒ Object
readonly
Returns the value of attribute memory_read.
-
#type ⇒ Object
readonly
Returns the value of attribute type.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(type: nil, memory_read: nil) ⇒ ObjectiveEventData_MemoryRead
constructor
A new instance of ObjectiveEventData_MemoryRead.
- #to_h ⇒ Object
Constructor Details
#initialize(type: nil, memory_read: nil) ⇒ ObjectiveEventData_MemoryRead
Returns a new instance of ObjectiveEventData_MemoryRead.
8780 8781 8782 8783 |
# File 'lib/cadenya/types.rb', line 8780 def initialize(type: nil, memory_read: nil) @type = type @memory_read = memory_read end |
Instance Attribute Details
#memory_read ⇒ Object (readonly)
Returns the value of attribute memory_read.
8778 8779 8780 |
# File 'lib/cadenya/types.rb', line 8778 def memory_read @memory_read end |
#type ⇒ Object (readonly)
Returns the value of attribute type.
8778 8779 8780 |
# File 'lib/cadenya/types.rb', line 8778 def type @type end |
Class Method Details
.from_json(data) ⇒ Object
8785 8786 8787 8788 8789 8790 |
# File 'lib/cadenya/types.rb', line 8785 def self.from_json(data) new( type: data["type"], memory_read: data["memoryRead"].nil? ? nil : Types::MemoryRead.from_json(data["memoryRead"]), ) end |