Class: Rafflesia::PlatformArtifactReadData

Inherits:
Types::BaseModel
  • Object
show all
Defined in:
lib/rafflesia/platform/platform_artifact_read_data.rb

Constant Summary collapse

HASH_ATTRS =
{
  absolute_path: :absolute_path,
  base64: :base_64,
  content_type: :content_type,
  encoding: :encoding,
  is_truncated: :is_truncated,
  kind: :kind,
  path: :path,
  returned_bytes: :returned_bytes,
  row_id: :row_id,
  sha256: :sha_256,
  size_bytes: :size_bytes,
  text: :text
}.freeze

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(json) ⇒ PlatformArtifactReadData

Returns a new instance of PlatformArtifactReadData.



37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
# File 'lib/rafflesia/platform/platform_artifact_read_data.rb', line 37

def initialize(json)
  super()
  hash = self.class.normalize(json)
  @absolute_path = hash[:absolute_path]
  @base_64 = hash[:base64]
  @content_type = hash[:content_type]
  @encoding = hash[:encoding]
  @is_truncated = hash[:is_truncated]
  @kind = hash[:kind]
  @path = hash[:path]
  @returned_bytes = hash[:returned_bytes]
  @row_id = hash[:row_id]
  @sha_256 = hash[:sha256]
  @size_bytes = hash[:size_bytes]
  @text = hash[:text]
end

Instance Attribute Details

#absolute_pathObject

Returns the value of attribute absolute_path.



23
24
25
# File 'lib/rafflesia/platform/platform_artifact_read_data.rb', line 23

def absolute_path
  @absolute_path
end

#base_64Object

Returns the value of attribute base_64.



23
24
25
# File 'lib/rafflesia/platform/platform_artifact_read_data.rb', line 23

def base_64
  @base_64
end

#content_typeObject

Returns the value of attribute content_type.



23
24
25
# File 'lib/rafflesia/platform/platform_artifact_read_data.rb', line 23

def content_type
  @content_type
end

#encodingObject

Returns the value of attribute encoding.



23
24
25
# File 'lib/rafflesia/platform/platform_artifact_read_data.rb', line 23

def encoding
  @encoding
end

#is_truncatedObject

Returns the value of attribute is_truncated.



23
24
25
# File 'lib/rafflesia/platform/platform_artifact_read_data.rb', line 23

def is_truncated
  @is_truncated
end

#kindObject

Returns the value of attribute kind.



23
24
25
# File 'lib/rafflesia/platform/platform_artifact_read_data.rb', line 23

def kind
  @kind
end

#pathObject

Returns the value of attribute path.



23
24
25
# File 'lib/rafflesia/platform/platform_artifact_read_data.rb', line 23

def path
  @path
end

#returned_bytesObject

Returns the value of attribute returned_bytes.



23
24
25
# File 'lib/rafflesia/platform/platform_artifact_read_data.rb', line 23

def returned_bytes
  @returned_bytes
end

#row_idObject

Returns the value of attribute row_id.



23
24
25
# File 'lib/rafflesia/platform/platform_artifact_read_data.rb', line 23

def row_id
  @row_id
end

#sha_256Object

Returns the value of attribute sha_256.



23
24
25
# File 'lib/rafflesia/platform/platform_artifact_read_data.rb', line 23

def sha_256
  @sha_256
end

#size_bytesObject

Returns the value of attribute size_bytes.



23
24
25
# File 'lib/rafflesia/platform/platform_artifact_read_data.rb', line 23

def size_bytes
  @size_bytes
end

#textObject

Returns the value of attribute text.



23
24
25
# File 'lib/rafflesia/platform/platform_artifact_read_data.rb', line 23

def text
  @text
end