Class: Rafflesia::DatasetBindingArtifact
- Inherits:
-
Types::BaseModel
- Object
- Types::BaseModel
- Rafflesia::DatasetBindingArtifact
- Defined in:
- lib/rafflesia/ontology/dataset_binding_artifact.rb
Constant Summary collapse
- HASH_ATTRS =
{ format: :format, id: :id, object_id: :object_id, row_count: :row_count, sha256: :sha_256, size_bytes: :size_bytes, status: :status }.freeze
Instance Attribute Summary collapse
-
#format ⇒ Object
Returns the value of attribute format.
-
#id ⇒ Object
Returns the value of attribute id.
-
#object_id ⇒ Object
Returns the value of attribute object_id.
-
#row_count ⇒ Object
Returns the value of attribute row_count.
-
#sha_256 ⇒ Object
Returns the value of attribute sha_256.
-
#size_bytes ⇒ Object
Returns the value of attribute size_bytes.
-
#status ⇒ Object
Returns the value of attribute status.
Instance Method Summary collapse
-
#initialize(json) ⇒ DatasetBindingArtifact
constructor
A new instance of DatasetBindingArtifact.
Constructor Details
#initialize(json) ⇒ DatasetBindingArtifact
Returns a new instance of DatasetBindingArtifact.
27 28 29 30 31 32 33 34 35 36 37 |
# File 'lib/rafflesia/ontology/dataset_binding_artifact.rb', line 27 def initialize(json) super() hash = self.class.normalize(json) @format = hash[:format] @id = hash[:id] @object_id = hash[:object_id] @row_count = hash[:row_count] @sha_256 = hash[:sha256] @size_bytes = hash[:size_bytes] @status = hash[:status] end |
Instance Attribute Details
#format ⇒ Object
Returns the value of attribute format.
18 19 20 |
# File 'lib/rafflesia/ontology/dataset_binding_artifact.rb', line 18 def format @format end |
#id ⇒ Object
Returns the value of attribute id.
18 19 20 |
# File 'lib/rafflesia/ontology/dataset_binding_artifact.rb', line 18 def id @id end |
#object_id ⇒ Object
Returns the value of attribute object_id.
18 19 20 |
# File 'lib/rafflesia/ontology/dataset_binding_artifact.rb', line 18 def object_id @object_id end |
#row_count ⇒ Object
Returns the value of attribute row_count.
18 19 20 |
# File 'lib/rafflesia/ontology/dataset_binding_artifact.rb', line 18 def row_count @row_count end |
#sha_256 ⇒ Object
Returns the value of attribute sha_256.
18 19 20 |
# File 'lib/rafflesia/ontology/dataset_binding_artifact.rb', line 18 def sha_256 @sha_256 end |
#size_bytes ⇒ Object
Returns the value of attribute size_bytes.
18 19 20 |
# File 'lib/rafflesia/ontology/dataset_binding_artifact.rb', line 18 def size_bytes @size_bytes end |
#status ⇒ Object
Returns the value of attribute status.
18 19 20 |
# File 'lib/rafflesia/ontology/dataset_binding_artifact.rb', line 18 def status @status end |