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