Class: Rafflesia::PlatformArtifactReadData
- Inherits:
-
Types::BaseModel
- Object
- Types::BaseModel
- Rafflesia::PlatformArtifactReadData
- 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
-
#absolute_path ⇒ Object
Returns the value of attribute absolute_path.
-
#base_64 ⇒ Object
Returns the value of attribute base_64.
-
#content_type ⇒ Object
Returns the value of attribute content_type.
-
#encoding ⇒ Object
Returns the value of attribute encoding.
-
#is_truncated ⇒ Object
Returns the value of attribute is_truncated.
-
#kind ⇒ Object
Returns the value of attribute kind.
-
#path ⇒ Object
Returns the value of attribute path.
-
#returned_bytes ⇒ Object
Returns the value of attribute returned_bytes.
-
#row_id ⇒ Object
Returns the value of attribute row_id.
-
#sha_256 ⇒ Object
Returns the value of attribute sha_256.
-
#size_bytes ⇒ Object
Returns the value of attribute size_bytes.
-
#text ⇒ Object
Returns the value of attribute text.
Instance Method Summary collapse
-
#initialize(json) ⇒ PlatformArtifactReadData
constructor
A new instance of PlatformArtifactReadData.
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_path ⇒ Object
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_64 ⇒ Object
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_type ⇒ Object
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 |
#encoding ⇒ Object
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_truncated ⇒ Object
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 |
#kind ⇒ Object
Returns the value of attribute kind.
23 24 25 |
# File 'lib/rafflesia/platform/platform_artifact_read_data.rb', line 23 def kind @kind end |
#path ⇒ Object
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_bytes ⇒ Object
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_id ⇒ Object
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_256 ⇒ Object
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_bytes ⇒ Object
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 |
#text ⇒ Object
Returns the value of attribute text.
23 24 25 |
# File 'lib/rafflesia/platform/platform_artifact_read_data.rb', line 23 def text @text end |