Class: Cadenya::Types::ObjectiveFeedback
- Inherits:
-
Object
- Object
- Cadenya::Types::ObjectiveFeedback
- Defined in:
- lib/cadenya/types.rb
Instance Attribute Summary collapse
-
#data ⇒ Object
readonly
Returns the value of attribute data.
-
#info ⇒ Object
readonly
Returns the value of attribute info.
-
#metadata ⇒ Object
readonly
Returns the value of attribute metadata.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(metadata: nil, data: nil, info: nil) ⇒ ObjectiveFeedback
constructor
A new instance of ObjectiveFeedback.
- #to_h ⇒ Object
Constructor Details
#initialize(metadata: nil, data: nil, info: nil) ⇒ ObjectiveFeedback
Returns a new instance of ObjectiveFeedback.
3847 3848 3849 3850 3851 |
# File 'lib/cadenya/types.rb', line 3847 def initialize(metadata: nil, data: nil, info: nil) @metadata = @data = data @info = info end |
Instance Attribute Details
#data ⇒ Object (readonly)
Returns the value of attribute data.
3845 3846 3847 |
# File 'lib/cadenya/types.rb', line 3845 def data @data end |
#info ⇒ Object (readonly)
Returns the value of attribute info.
3845 3846 3847 |
# File 'lib/cadenya/types.rb', line 3845 def info @info end |
#metadata ⇒ Object (readonly)
Returns the value of attribute metadata.
3845 3846 3847 |
# File 'lib/cadenya/types.rb', line 3845 def @metadata end |
Class Method Details
.from_json(data) ⇒ Object
3853 3854 3855 3856 3857 3858 3859 |
# File 'lib/cadenya/types.rb', line 3853 def self.from_json(data) new( metadata: data["metadata"].nil? ? nil : Types::OperationMetadata.from_json(data["metadata"]), data: data["data"].nil? ? nil : Types::ObjectiveFeedbackData.from_json(data["data"]), info: data["info"].nil? ? nil : Types::ObjectiveFeedbackInfo.from_json(data["info"]), ) end |