Class: Rafflesia::ArchiveMemberFindResult
- Inherits:
-
Types::BaseModel
- Object
- Types::BaseModel
- Rafflesia::ArchiveMemberFindResult
- Defined in:
- lib/rafflesia/artifacts/archive_member_find_result.rb
Constant Summary collapse
- HASH_ATTRS =
{ archive_object_id: :archive_object_id, extension: :extension, inferred_kind: :inferred_kind, inventory_manifest_id: :inventory_manifest_id, match_type: :match_type, member: :member, member_path: :member_path, message: :message, name: :name, object: :object, query: :query, query_type: :query_type, sha256: :sha_256, size_bytes: :size_bytes, status: :status }.freeze
Instance Attribute Summary collapse
-
#archive_object_id ⇒ Object
Returns the value of attribute archive_object_id.
-
#extension ⇒ Object
Returns the value of attribute extension.
-
#inferred_kind ⇒ Object
Returns the value of attribute inferred_kind.
-
#inventory_manifest_id ⇒ Object
Returns the value of attribute inventory_manifest_id.
-
#match_type ⇒ Object
Returns the value of attribute match_type.
-
#member ⇒ Object
Returns the value of attribute member.
-
#member_path ⇒ Object
Returns the value of attribute member_path.
-
#message ⇒ Object
Returns the value of attribute message.
-
#name ⇒ Object
Returns the value of attribute name.
-
#object ⇒ Object
Returns the value of attribute object.
-
#query ⇒ Object
Returns the value of attribute query.
-
#query_type ⇒ Object
Returns the value of attribute query_type.
-
#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) ⇒ ArchiveMemberFindResult
constructor
A new instance of ArchiveMemberFindResult.
Constructor Details
#initialize(json) ⇒ ArchiveMemberFindResult
Returns a new instance of ArchiveMemberFindResult.
43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 |
# File 'lib/rafflesia/artifacts/archive_member_find_result.rb', line 43 def initialize(json) super() hash = self.class.normalize(json) @archive_object_id = hash[:archive_object_id] @extension = hash[:extension] @inferred_kind = hash[:inferred_kind] @inventory_manifest_id = hash[:inventory_manifest_id] @match_type = hash[:match_type] @member = hash[:member] ? Rafflesia::ArchiveMemberRecord.new(hash[:member]) : nil @member_path = hash[:member_path] @message = hash[:message] @name = hash[:name] @object = hash[:object] ? Rafflesia::ObjectRef.new(hash[:object]) : nil @query = hash[:query] @query_type = hash[:query_type] @sha_256 = hash[:sha256] @size_bytes = hash[:size_bytes] @status = hash[:status] end |
Instance Attribute Details
#archive_object_id ⇒ Object
Returns the value of attribute archive_object_id.
26 27 28 |
# File 'lib/rafflesia/artifacts/archive_member_find_result.rb', line 26 def archive_object_id @archive_object_id end |
#extension ⇒ Object
Returns the value of attribute extension.
26 27 28 |
# File 'lib/rafflesia/artifacts/archive_member_find_result.rb', line 26 def extension @extension end |
#inferred_kind ⇒ Object
Returns the value of attribute inferred_kind.
26 27 28 |
# File 'lib/rafflesia/artifacts/archive_member_find_result.rb', line 26 def inferred_kind @inferred_kind end |
#inventory_manifest_id ⇒ Object
Returns the value of attribute inventory_manifest_id.
26 27 28 |
# File 'lib/rafflesia/artifacts/archive_member_find_result.rb', line 26 def inventory_manifest_id @inventory_manifest_id end |
#match_type ⇒ Object
Returns the value of attribute match_type.
26 27 28 |
# File 'lib/rafflesia/artifacts/archive_member_find_result.rb', line 26 def match_type @match_type end |
#member ⇒ Object
Returns the value of attribute member.
26 27 28 |
# File 'lib/rafflesia/artifacts/archive_member_find_result.rb', line 26 def member @member end |
#member_path ⇒ Object
Returns the value of attribute member_path.
26 27 28 |
# File 'lib/rafflesia/artifacts/archive_member_find_result.rb', line 26 def member_path @member_path end |
#message ⇒ Object
Returns the value of attribute message.
26 27 28 |
# File 'lib/rafflesia/artifacts/archive_member_find_result.rb', line 26 def @message end |
#name ⇒ Object
Returns the value of attribute name.
26 27 28 |
# File 'lib/rafflesia/artifacts/archive_member_find_result.rb', line 26 def name @name end |
#object ⇒ Object
Returns the value of attribute object.
26 27 28 |
# File 'lib/rafflesia/artifacts/archive_member_find_result.rb', line 26 def object @object end |
#query ⇒ Object
Returns the value of attribute query.
26 27 28 |
# File 'lib/rafflesia/artifacts/archive_member_find_result.rb', line 26 def query @query end |
#query_type ⇒ Object
Returns the value of attribute query_type.
26 27 28 |
# File 'lib/rafflesia/artifacts/archive_member_find_result.rb', line 26 def query_type @query_type end |
#sha_256 ⇒ Object
Returns the value of attribute sha_256.
26 27 28 |
# File 'lib/rafflesia/artifacts/archive_member_find_result.rb', line 26 def sha_256 @sha_256 end |
#size_bytes ⇒ Object
Returns the value of attribute size_bytes.
26 27 28 |
# File 'lib/rafflesia/artifacts/archive_member_find_result.rb', line 26 def size_bytes @size_bytes end |
#status ⇒ Object
Returns the value of attribute status.
26 27 28 |
# File 'lib/rafflesia/artifacts/archive_member_find_result.rb', line 26 def status @status end |