Class: Cadenya::Types::ObjectiveFeedbackInfo
- Inherits:
-
Object
- Object
- Cadenya::Types::ObjectiveFeedbackInfo
- Defined in:
- lib/cadenya/types.rb
Instance Attribute Summary collapse
-
#agent_variation ⇒ Object
readonly
Returns the value of attribute agent_variation.
-
#objective ⇒ Object
readonly
Returns the value of attribute objective.
-
#submitted_by ⇒ Object
readonly
Returns the value of attribute submitted_by.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(submitted_by: nil, objective: nil, agent_variation: nil) ⇒ ObjectiveFeedbackInfo
constructor
A new instance of ObjectiveFeedbackInfo.
- #to_h ⇒ Object
Constructor Details
#initialize(submitted_by: nil, objective: nil, agent_variation: nil) ⇒ ObjectiveFeedbackInfo
Returns a new instance of ObjectiveFeedbackInfo.
3896 3897 3898 3899 3900 |
# File 'lib/cadenya/types.rb', line 3896 def initialize(submitted_by: nil, objective: nil, agent_variation: nil) @submitted_by = submitted_by @objective = objective @agent_variation = agent_variation end |
Instance Attribute Details
#agent_variation ⇒ Object (readonly)
Returns the value of attribute agent_variation.
3894 3895 3896 |
# File 'lib/cadenya/types.rb', line 3894 def agent_variation @agent_variation end |
#objective ⇒ Object (readonly)
Returns the value of attribute objective.
3894 3895 3896 |
# File 'lib/cadenya/types.rb', line 3894 def objective @objective end |
#submitted_by ⇒ Object (readonly)
Returns the value of attribute submitted_by.
3894 3895 3896 |
# File 'lib/cadenya/types.rb', line 3894 def submitted_by @submitted_by end |
Class Method Details
.from_json(data) ⇒ Object
3902 3903 3904 3905 3906 3907 3908 |
# File 'lib/cadenya/types.rb', line 3902 def self.from_json(data) new( submitted_by: data["submittedBy"].nil? ? nil : Types::Profile.from_json(data["submittedBy"]), objective: data["objective"].nil? ? nil : Types::BareMetadata.from_json(data["objective"]), agent_variation: data["agentVariation"].nil? ? nil : Types::BareMetadata.from_json(data["agentVariation"]), ) end |