Class: Rafflesia::SequenceImportRequest
- Inherits:
-
Types::BaseModel
- Object
- Types::BaseModel
- Rafflesia::SequenceImportRequest
- Defined in:
- lib/rafflesia/sequences/sequence_import_request.rb
Constant Summary collapse
- HASH_ATTRS =
{ path: :path, target_id: :target_id }.freeze
Instance Attribute Summary collapse
-
#path ⇒ Object
Returns the value of attribute path.
-
#target_id ⇒ Object
Returns the value of attribute target_id.
Instance Method Summary collapse
-
#initialize(json) ⇒ SequenceImportRequest
constructor
A new instance of SequenceImportRequest.
Constructor Details
#initialize(json) ⇒ SequenceImportRequest
Returns a new instance of SequenceImportRequest.
17 18 19 20 21 22 |
# File 'lib/rafflesia/sequences/sequence_import_request.rb', line 17 def initialize(json) super() hash = self.class.normalize(json) @path = hash[:path] @target_id = hash[:target_id] end |
Instance Attribute Details
#path ⇒ Object
Returns the value of attribute path.
13 14 15 |
# File 'lib/rafflesia/sequences/sequence_import_request.rb', line 13 def path @path end |
#target_id ⇒ Object
Returns the value of attribute target_id.
13 14 15 |
# File 'lib/rafflesia/sequences/sequence_import_request.rb', line 13 def target_id @target_id end |