Class: Rafflesia::ArtifactMaterializationResult
- Inherits:
-
Types::BaseModel
- Object
- Types::BaseModel
- Rafflesia::ArtifactMaterializationResult
- Defined in:
- lib/rafflesia/artifacts/artifact_materialization_result.rb
Constant Summary collapse
- HASH_ATTRS =
{ accession: :accession, artifact_doi: :artifact_doi, artifact_id: :artifact_id, content_length_bytes: :content_length_bytes, kind: :kind, map_id: :map_id, materialization_mode: :materialization_mode, message: :message, object: :object, paper_doi: :paper_doi, paper_id: :paper_id, path: :path, resolved_revision: :resolved_revision, resolved_url: :resolved_url, retrieved_at: :retrieved_at, source: :source, source_url: :source_url, status: :status, structure_id: :structure_id, url: :url }.freeze
Instance Attribute Summary collapse
-
#accession ⇒ Object
Returns the value of attribute accession.
-
#artifact_doi ⇒ Object
Returns the value of attribute artifact_doi.
-
#artifact_id ⇒ Object
Returns the value of attribute artifact_id.
-
#content_length_bytes ⇒ Object
Returns the value of attribute content_length_bytes.
-
#kind ⇒ Object
Returns the value of attribute kind.
-
#map_id ⇒ Object
Returns the value of attribute map_id.
-
#materialization_mode ⇒ Object
Returns the value of attribute materialization_mode.
-
#message ⇒ Object
Returns the value of attribute message.
-
#object ⇒ Object
Returns the value of attribute object.
-
#paper_doi ⇒ Object
Returns the value of attribute paper_doi.
-
#paper_id ⇒ Object
Returns the value of attribute paper_id.
-
#path ⇒ Object
Returns the value of attribute path.
-
#resolved_revision ⇒ Object
Returns the value of attribute resolved_revision.
-
#resolved_url ⇒ Object
Returns the value of attribute resolved_url.
-
#retrieved_at ⇒ Object
Returns the value of attribute retrieved_at.
-
#source ⇒ Object
Returns the value of attribute source.
-
#source_url ⇒ Object
Returns the value of attribute source_url.
-
#status ⇒ Object
Returns the value of attribute status.
-
#structure_id ⇒ Object
Returns the value of attribute structure_id.
-
#url ⇒ Object
Returns the value of attribute url.
Instance Method Summary collapse
-
#initialize(json) ⇒ ArtifactMaterializationResult
constructor
A new instance of ArtifactMaterializationResult.
Constructor Details
#initialize(json) ⇒ ArtifactMaterializationResult
Returns a new instance of ArtifactMaterializationResult.
53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 |
# File 'lib/rafflesia/artifacts/artifact_materialization_result.rb', line 53 def initialize(json) super() hash = self.class.normalize(json) @accession = hash[:accession] @artifact_doi = hash[:artifact_doi] @artifact_id = hash[:artifact_id] @content_length_bytes = hash[:content_length_bytes] @kind = hash[:kind] @map_id = hash[:map_id] @materialization_mode = hash[:materialization_mode] @message = hash[:message] @object = hash[:object] ? Rafflesia::ObjectRef.new(hash[:object]) : nil @paper_doi = hash[:paper_doi] @paper_id = hash[:paper_id] @path = hash[:path] @resolved_revision = hash[:resolved_revision] @resolved_url = hash[:resolved_url] @retrieved_at = hash[:retrieved_at] @source = hash[:source] @source_url = hash[:source_url] @status = hash[:status] @structure_id = hash[:structure_id] @url = hash[:url] end |
Instance Attribute Details
#accession ⇒ Object
Returns the value of attribute accession.
31 32 33 |
# File 'lib/rafflesia/artifacts/artifact_materialization_result.rb', line 31 def accession @accession end |
#artifact_doi ⇒ Object
Returns the value of attribute artifact_doi.
31 32 33 |
# File 'lib/rafflesia/artifacts/artifact_materialization_result.rb', line 31 def artifact_doi @artifact_doi end |
#artifact_id ⇒ Object
Returns the value of attribute artifact_id.
31 32 33 |
# File 'lib/rafflesia/artifacts/artifact_materialization_result.rb', line 31 def artifact_id @artifact_id end |
#content_length_bytes ⇒ Object
Returns the value of attribute content_length_bytes.
31 32 33 |
# File 'lib/rafflesia/artifacts/artifact_materialization_result.rb', line 31 def content_length_bytes @content_length_bytes end |
#kind ⇒ Object
Returns the value of attribute kind.
31 32 33 |
# File 'lib/rafflesia/artifacts/artifact_materialization_result.rb', line 31 def kind @kind end |
#map_id ⇒ Object
Returns the value of attribute map_id.
31 32 33 |
# File 'lib/rafflesia/artifacts/artifact_materialization_result.rb', line 31 def map_id @map_id end |
#materialization_mode ⇒ Object
Returns the value of attribute materialization_mode.
31 32 33 |
# File 'lib/rafflesia/artifacts/artifact_materialization_result.rb', line 31 def materialization_mode @materialization_mode end |
#message ⇒ Object
Returns the value of attribute message.
31 32 33 |
# File 'lib/rafflesia/artifacts/artifact_materialization_result.rb', line 31 def @message end |
#object ⇒ Object
Returns the value of attribute object.
31 32 33 |
# File 'lib/rafflesia/artifacts/artifact_materialization_result.rb', line 31 def object @object end |
#paper_doi ⇒ Object
Returns the value of attribute paper_doi.
31 32 33 |
# File 'lib/rafflesia/artifacts/artifact_materialization_result.rb', line 31 def paper_doi @paper_doi end |
#paper_id ⇒ Object
Returns the value of attribute paper_id.
31 32 33 |
# File 'lib/rafflesia/artifacts/artifact_materialization_result.rb', line 31 def paper_id @paper_id end |
#path ⇒ Object
Returns the value of attribute path.
31 32 33 |
# File 'lib/rafflesia/artifacts/artifact_materialization_result.rb', line 31 def path @path end |
#resolved_revision ⇒ Object
Returns the value of attribute resolved_revision.
31 32 33 |
# File 'lib/rafflesia/artifacts/artifact_materialization_result.rb', line 31 def resolved_revision @resolved_revision end |
#resolved_url ⇒ Object
Returns the value of attribute resolved_url.
31 32 33 |
# File 'lib/rafflesia/artifacts/artifact_materialization_result.rb', line 31 def resolved_url @resolved_url end |
#retrieved_at ⇒ Object
Returns the value of attribute retrieved_at.
31 32 33 |
# File 'lib/rafflesia/artifacts/artifact_materialization_result.rb', line 31 def retrieved_at @retrieved_at end |
#source ⇒ Object
Returns the value of attribute source.
31 32 33 |
# File 'lib/rafflesia/artifacts/artifact_materialization_result.rb', line 31 def source @source end |
#source_url ⇒ Object
Returns the value of attribute source_url.
31 32 33 |
# File 'lib/rafflesia/artifacts/artifact_materialization_result.rb', line 31 def source_url @source_url end |
#status ⇒ Object
Returns the value of attribute status.
31 32 33 |
# File 'lib/rafflesia/artifacts/artifact_materialization_result.rb', line 31 def status @status end |
#structure_id ⇒ Object
Returns the value of attribute structure_id.
31 32 33 |
# File 'lib/rafflesia/artifacts/artifact_materialization_result.rb', line 31 def structure_id @structure_id end |
#url ⇒ Object
Returns the value of attribute url.
31 32 33 |
# File 'lib/rafflesia/artifacts/artifact_materialization_result.rb', line 31 def url @url end |