Class: Rafflesia::CryoEmMapImportRequest

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

Instance Method Summary collapse

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_idObject

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_idObject

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

#pathObject

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

#sourceObject

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