Class: Rafflesia::CryoEmMapFetchRequest

Inherits:
Types::BaseModel
  • Object
show all
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

Instance Method Summary collapse

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_networkObject

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_idObject

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_volumeObject

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_bytesObject

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_urlObject

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