Class: Cadenya::Types::ObjectiveFeedbackData
- Inherits:
-
Object
- Object
- Cadenya::Types::ObjectiveFeedbackData
- Defined in:
- lib/cadenya/types.rb
Instance Attribute Summary collapse
-
#comment ⇒ Object
readonly
Returns the value of attribute comment.
-
#score ⇒ Object
readonly
Returns the value of attribute score.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(score: nil, comment: nil) ⇒ ObjectiveFeedbackData
constructor
A new instance of ObjectiveFeedbackData.
- #to_h ⇒ Object
Constructor Details
#initialize(score: nil, comment: nil) ⇒ ObjectiveFeedbackData
Returns a new instance of ObjectiveFeedbackData.
3873 3874 3875 3876 |
# File 'lib/cadenya/types.rb', line 3873 def initialize(score: nil, comment: nil) @score = score @comment = comment end |
Instance Attribute Details
#comment ⇒ Object (readonly)
Returns the value of attribute comment.
3871 3872 3873 |
# File 'lib/cadenya/types.rb', line 3871 def comment @comment end |
#score ⇒ Object (readonly)
Returns the value of attribute score.
3871 3872 3873 |
# File 'lib/cadenya/types.rb', line 3871 def score @score end |
Class Method Details
.from_json(data) ⇒ Object
3878 3879 3880 3881 3882 3883 |
# File 'lib/cadenya/types.rb', line 3878 def self.from_json(data) new( score: data["score"], comment: data["comment"], ) end |