Class: Rafflesia::SimulationGromacsInventoryEntry
- Inherits:
-
Types::BaseModel
- Object
- Types::BaseModel
- Rafflesia::SimulationGromacsInventoryEntry
- 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
-
#download_url ⇒ Object
Returns the value of attribute download_url.
-
#name ⇒ Object
Returns the value of attribute name.
-
#normalized_path ⇒ Object
Returns the value of attribute normalized_path.
-
#object_id ⇒ Object
Returns the value of attribute object_id.
-
#path ⇒ Object
Returns the value of attribute path.
-
#sha_256 ⇒ Object
Returns the value of attribute sha_256.
-
#size_bytes ⇒ Object
Returns the value of attribute size_bytes.
-
#source_object_id ⇒ Object
Returns the value of attribute source_object_id.
-
#type ⇒ Object
Returns the value of attribute type.
-
#url ⇒ Object
Returns the value of attribute url.
Instance Method Summary collapse
-
#initialize(json) ⇒ SimulationGromacsInventoryEntry
constructor
A new instance of SimulationGromacsInventoryEntry.
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_url ⇒ Object
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 |
#name ⇒ Object
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_path ⇒ Object
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_id ⇒ Object
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 |
#path ⇒ Object
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_256 ⇒ Object
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_bytes ⇒ Object
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_id ⇒ Object
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 |
#type ⇒ Object
Returns the value of attribute type.
21 22 23 |
# File 'lib/rafflesia/simulations/simulation_gromacs_inventory_entry.rb', line 21 def type @type end |
#url ⇒ Object
Returns the value of attribute url.
21 22 23 |
# File 'lib/rafflesia/simulations/simulation_gromacs_inventory_entry.rb', line 21 def url @url end |