Class: Rafflesia::DatasetBindingArtifact

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

Instance Method Summary collapse

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

#formatObject

Returns the value of attribute format.



18
19
20
# File 'lib/rafflesia/ontology/dataset_binding_artifact.rb', line 18

def format
  @format
end

#idObject

Returns the value of attribute id.



18
19
20
# File 'lib/rafflesia/ontology/dataset_binding_artifact.rb', line 18

def id
  @id
end

#object_idObject

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_countObject

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_256Object

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_bytesObject

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

#statusObject

Returns the value of attribute status.



18
19
20
# File 'lib/rafflesia/ontology/dataset_binding_artifact.rb', line 18

def status
  @status
end