Class: Rafflesia::SimulationGromacsInventoryEntry

Inherits:
Types::BaseModel
  • Object
show all
Defined in:
lib/rafflesia/simulations/simulation_gromacs_inventory_entry.rb

Constant Summary collapse

HASH_ATTRS =
{
  download_url: :download_url,
  name: :name,
  normalized_path: :normalized_path,
  object_id: :object_id,
  path: :path,
  sha256: :sha_256,
  size_bytes: :size_bytes,
  source_object_id: :source_object_id,
  type: :type,
  url: :url
}.freeze

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(json) ⇒ SimulationGromacsInventoryEntry

Returns a new instance of SimulationGromacsInventoryEntry.



33
34
35
36
37
38
39
40
41
42
43
44
45
46
# File 'lib/rafflesia/simulations/simulation_gromacs_inventory_entry.rb', line 33

def initialize(json)
  super()
  hash = self.class.normalize(json)
  @download_url = hash[:download_url]
  @name = hash[:name]
  @normalized_path = hash[:normalized_path]
  @object_id = hash[:object_id]
  @path = hash[:path]
  @sha_256 = hash[:sha256]
  @size_bytes = hash[:size_bytes]
  @source_object_id = hash[:source_object_id]
  @type = hash[:type]
  @url = hash[:url]
end

Instance Attribute Details

#download_urlObject

Returns the value of attribute download_url.



21
22
23
# File 'lib/rafflesia/simulations/simulation_gromacs_inventory_entry.rb', line 21

def download_url
  @download_url
end

#nameObject

Returns the value of attribute name.



21
22
23
# File 'lib/rafflesia/simulations/simulation_gromacs_inventory_entry.rb', line 21

def name
  @name
end

#normalized_pathObject

Returns the value of attribute normalized_path.



21
22
23
# File 'lib/rafflesia/simulations/simulation_gromacs_inventory_entry.rb', line 21

def normalized_path
  @normalized_path
end

#object_idObject

Returns the value of attribute object_id.



21
22
23
# File 'lib/rafflesia/simulations/simulation_gromacs_inventory_entry.rb', line 21

def object_id
  @object_id
end

#pathObject

Returns the value of attribute path.



21
22
23
# File 'lib/rafflesia/simulations/simulation_gromacs_inventory_entry.rb', line 21

def path
  @path
end

#sha_256Object

Returns the value of attribute sha_256.



21
22
23
# File 'lib/rafflesia/simulations/simulation_gromacs_inventory_entry.rb', line 21

def sha_256
  @sha_256
end

#size_bytesObject

Returns the value of attribute size_bytes.



21
22
23
# File 'lib/rafflesia/simulations/simulation_gromacs_inventory_entry.rb', line 21

def size_bytes
  @size_bytes
end

#source_object_idObject

Returns the value of attribute source_object_id.



21
22
23
# File 'lib/rafflesia/simulations/simulation_gromacs_inventory_entry.rb', line 21

def source_object_id
  @source_object_id
end

#typeObject

Returns the value of attribute type.



21
22
23
# File 'lib/rafflesia/simulations/simulation_gromacs_inventory_entry.rb', line 21

def type
  @type
end

#urlObject

Returns the value of attribute url.



21
22
23
# File 'lib/rafflesia/simulations/simulation_gromacs_inventory_entry.rb', line 21

def url
  @url
end