Class: Rafflesia::CryoEmMapFetchRequest
- Inherits:
-
Types::BaseModel
- Object
- Types::BaseModel
- Rafflesia::CryoEmMapFetchRequest
- Defined in:
- lib/rafflesia/maps/cryo_em_map_fetch_request.rb
Constant Summary collapse
- HASH_ATTRS =
{ allow_network: :allow_network, emdb_id: :emdb_id, include_volume: :include_volume, max_download_bytes: :max_download_bytes, volume_source_url: :volume_source_url }.freeze
Instance Attribute Summary collapse
-
#allow_network ⇒ Object
Returns the value of attribute allow_network.
-
#emdb_id ⇒ Object
Returns the value of attribute emdb_id.
-
#include_volume ⇒ Object
Returns the value of attribute include_volume.
-
#max_download_bytes ⇒ Object
Returns the value of attribute max_download_bytes.
-
#volume_source_url ⇒ Object
Returns the value of attribute volume_source_url.
Instance Method Summary collapse
-
#initialize(json) ⇒ CryoEmMapFetchRequest
constructor
A new instance of CryoEmMapFetchRequest.
Constructor Details
#initialize(json) ⇒ CryoEmMapFetchRequest
Returns a new instance of CryoEmMapFetchRequest.
23 24 25 26 27 28 29 30 31 |
# File 'lib/rafflesia/maps/cryo_em_map_fetch_request.rb', line 23 def initialize(json) super() hash = self.class.normalize(json) @allow_network = hash[:allow_network] @emdb_id = hash[:emdb_id] @include_volume = hash[:include_volume] @max_download_bytes = hash[:max_download_bytes] @volume_source_url = hash[:volume_source_url] end |
Instance Attribute Details
#allow_network ⇒ Object
Returns the value of attribute allow_network.
16 17 18 |
# File 'lib/rafflesia/maps/cryo_em_map_fetch_request.rb', line 16 def allow_network @allow_network end |
#emdb_id ⇒ Object
Returns the value of attribute emdb_id.
16 17 18 |
# File 'lib/rafflesia/maps/cryo_em_map_fetch_request.rb', line 16 def emdb_id @emdb_id end |
#include_volume ⇒ Object
Returns the value of attribute include_volume.
16 17 18 |
# File 'lib/rafflesia/maps/cryo_em_map_fetch_request.rb', line 16 def include_volume @include_volume end |
#max_download_bytes ⇒ Object
Returns the value of attribute max_download_bytes.
16 17 18 |
# File 'lib/rafflesia/maps/cryo_em_map_fetch_request.rb', line 16 def max_download_bytes @max_download_bytes end |
#volume_source_url ⇒ Object
Returns the value of attribute volume_source_url.
16 17 18 |
# File 'lib/rafflesia/maps/cryo_em_map_fetch_request.rb', line 16 def volume_source_url @volume_source_url end |