Class: Rafflesia::SimulationInputRef
- Inherits:
-
Types::BaseModel
- Object
- Types::BaseModel
- Rafflesia::SimulationInputRef
- Defined in:
- lib/rafflesia/simulations/simulation_input_ref.rb
Constant Summary collapse
- HASH_ATTRS =
{ bucket: :bucket, content_type: :content_type, format: :format, object_id: :object_id, object_key: :object_key, path: :path, sha256: :sha_256, size_bytes: :size_bytes, storage_backend: :storage_backend, uri: :uri }.freeze
Instance Attribute Summary collapse
-
#bucket ⇒ Object
Returns the value of attribute bucket.
-
#content_type ⇒ Object
Returns the value of attribute content_type.
-
#format ⇒ Object
Returns the value of attribute format.
-
#object_id ⇒ Object
Returns the value of attribute object_id.
-
#object_key ⇒ Object
Returns the value of attribute object_key.
-
#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.
-
#storage_backend ⇒ Object
Returns the value of attribute storage_backend.
-
#uri ⇒ Object
Returns the value of attribute uri.
Instance Method Summary collapse
-
#initialize(json) ⇒ SimulationInputRef
constructor
A new instance of SimulationInputRef.
Constructor Details
#initialize(json) ⇒ SimulationInputRef
Returns a new instance of SimulationInputRef.
33 34 35 36 37 38 39 40 41 42 43 44 45 46 |
# File 'lib/rafflesia/simulations/simulation_input_ref.rb', line 33 def initialize(json) super() hash = self.class.normalize(json) @bucket = hash[:bucket] @content_type = hash[:content_type] @format = hash[:format] @object_id = hash[:object_id] @object_key = hash[:object_key] @path = hash[:path] @sha_256 = hash[:sha256] @size_bytes = hash[:size_bytes] @storage_backend = hash[:storage_backend] @uri = hash[:uri] end |
Instance Attribute Details
#bucket ⇒ Object
Returns the value of attribute bucket.
21 22 23 |
# File 'lib/rafflesia/simulations/simulation_input_ref.rb', line 21 def bucket @bucket end |
#content_type ⇒ Object
Returns the value of attribute content_type.
21 22 23 |
# File 'lib/rafflesia/simulations/simulation_input_ref.rb', line 21 def content_type @content_type end |
#format ⇒ Object
Returns the value of attribute format.
21 22 23 |
# File 'lib/rafflesia/simulations/simulation_input_ref.rb', line 21 def format @format end |
#object_id ⇒ Object
Returns the value of attribute object_id.
21 22 23 |
# File 'lib/rafflesia/simulations/simulation_input_ref.rb', line 21 def object_id @object_id end |
#object_key ⇒ Object
Returns the value of attribute object_key.
21 22 23 |
# File 'lib/rafflesia/simulations/simulation_input_ref.rb', line 21 def object_key @object_key end |
#path ⇒ Object
Returns the value of attribute path.
21 22 23 |
# File 'lib/rafflesia/simulations/simulation_input_ref.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_input_ref.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_input_ref.rb', line 21 def size_bytes @size_bytes end |
#storage_backend ⇒ Object
Returns the value of attribute storage_backend.
21 22 23 |
# File 'lib/rafflesia/simulations/simulation_input_ref.rb', line 21 def storage_backend @storage_backend end |
#uri ⇒ Object
Returns the value of attribute uri.
21 22 23 |
# File 'lib/rafflesia/simulations/simulation_input_ref.rb', line 21 def uri @uri end |