Class: Rafflesia::FoldSegmentGenerationRollbackRequest
- Inherits:
-
Types::BaseModel
- Object
- Types::BaseModel
- Rafflesia::FoldSegmentGenerationRollbackRequest
- Defined in:
- lib/rafflesia/proteins/fold_segment_generation_rollback_request.rb
Constant Summary collapse
- HASH_ATTRS =
{ name: :name, reason: :reason, to_ref: :to_ref }.freeze
Instance Attribute Summary collapse
-
#name ⇒ Object
Returns the value of attribute name.
-
#reason ⇒ Object
Returns the value of attribute reason.
-
#to_ref ⇒ Object
Returns the value of attribute to_ref.
Instance Method Summary collapse
-
#initialize(json) ⇒ FoldSegmentGenerationRollbackRequest
constructor
A new instance of FoldSegmentGenerationRollbackRequest.
Constructor Details
#initialize(json) ⇒ FoldSegmentGenerationRollbackRequest
Returns a new instance of FoldSegmentGenerationRollbackRequest.
19 20 21 22 23 24 25 |
# File 'lib/rafflesia/proteins/fold_segment_generation_rollback_request.rb', line 19 def initialize(json) super() hash = self.class.normalize(json) @name = hash[:name] @reason = hash[:reason] @to_ref = hash[:to_ref] end |
Instance Attribute Details
#name ⇒ Object
Returns the value of attribute name.
14 15 16 |
# File 'lib/rafflesia/proteins/fold_segment_generation_rollback_request.rb', line 14 def name @name end |
#reason ⇒ Object
Returns the value of attribute reason.
14 15 16 |
# File 'lib/rafflesia/proteins/fold_segment_generation_rollback_request.rb', line 14 def reason @reason end |
#to_ref ⇒ Object
Returns the value of attribute to_ref.
14 15 16 |
# File 'lib/rafflesia/proteins/fold_segment_generation_rollback_request.rb', line 14 def to_ref @to_ref end |