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