Class: Cadenya::Types::ObjectiveEpisodicConfig
- Inherits:
-
Object
- Object
- Cadenya::Types::ObjectiveEpisodicConfig
- Defined in:
- lib/cadenya/types.rb
Instance Attribute Summary collapse
-
#key ⇒ Object
readonly
Returns the value of attribute key.
-
#memory_layer_id ⇒ Object
readonly
Returns the value of attribute memory_layer_id.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(key: nil, memory_layer_id: nil) ⇒ ObjectiveEpisodicConfig
constructor
A new instance of ObjectiveEpisodicConfig.
- #to_h ⇒ Object
Constructor Details
#initialize(key: nil, memory_layer_id: nil) ⇒ ObjectiveEpisodicConfig
Returns a new instance of ObjectiveEpisodicConfig.
3699 3700 3701 3702 |
# File 'lib/cadenya/types.rb', line 3699 def initialize(key: nil, memory_layer_id: nil) @key = key @memory_layer_id = memory_layer_id end |
Instance Attribute Details
#key ⇒ Object (readonly)
Returns the value of attribute key.
3697 3698 3699 |
# File 'lib/cadenya/types.rb', line 3697 def key @key end |
#memory_layer_id ⇒ Object (readonly)
Returns the value of attribute memory_layer_id.
3697 3698 3699 |
# File 'lib/cadenya/types.rb', line 3697 def memory_layer_id @memory_layer_id end |
Class Method Details
.from_json(data) ⇒ Object
3704 3705 3706 3707 3708 3709 |
# File 'lib/cadenya/types.rb', line 3704 def self.from_json(data) new( key: data["key"], memory_layer_id: data["memoryLayerId"], ) end |