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