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