Class: Rafflesia::RelationReleasePublicationRequest
- Inherits:
-
Types::BaseModel
- Object
- Types::BaseModel
- Rafflesia::RelationReleasePublicationRequest
- Defined in:
- lib/rafflesia/datasets/relation_release_publication_request.rb
Constant Summary collapse
- HASH_ATTRS =
{ artifacts: :artifacts, created_at: :created_at, database: :database, dataset_kind: :dataset_kind, dry_run: :dry_run, manifest_object_id: :manifest_object_id, manifest_path: :manifest_path, manifest_sha256: :manifest_sha_256, manifest_size_bytes: :manifest_size_bytes, release: :release, release_digest: :release_digest, source: :source }.freeze
Instance Attribute Summary collapse
-
#artifacts ⇒ Object
Returns the value of attribute artifacts.
-
#created_at ⇒ Object
Returns the value of attribute created_at.
-
#database ⇒ Object
Returns the value of attribute database.
-
#dataset_kind ⇒ Object
Returns the value of attribute dataset_kind.
-
#dry_run ⇒ Object
Returns the value of attribute dry_run.
-
#manifest_object_id ⇒ Object
Returns the value of attribute manifest_object_id.
-
#manifest_path ⇒ Object
Returns the value of attribute manifest_path.
-
#manifest_sha_256 ⇒ Object
Returns the value of attribute manifest_sha_256.
-
#manifest_size_bytes ⇒ Object
Returns the value of attribute manifest_size_bytes.
-
#release ⇒ Object
Returns the value of attribute release.
-
#release_digest ⇒ Object
Returns the value of attribute release_digest.
-
#source ⇒ Object
Returns the value of attribute source.
Instance Method Summary collapse
-
#initialize(json) ⇒ RelationReleasePublicationRequest
constructor
A new instance of RelationReleasePublicationRequest.
Constructor Details
#initialize(json) ⇒ RelationReleasePublicationRequest
Returns a new instance of RelationReleasePublicationRequest.
37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 |
# File 'lib/rafflesia/datasets/relation_release_publication_request.rb', line 37 def initialize(json) super() hash = self.class.normalize(json) @artifacts = (hash[:artifacts] || []).map { |item| item ? Rafflesia::RelationReleasePublicationArtifact.new(item) : nil } @created_at = hash[:created_at] @database = hash[:database] @dataset_kind = hash[:dataset_kind] @dry_run = hash[:dry_run] @manifest_object_id = hash[:manifest_object_id] @manifest_path = hash[:manifest_path] @manifest_sha_256 = hash[:manifest_sha256] @manifest_size_bytes = hash[:manifest_size_bytes] @release = hash[:release] @release_digest = hash[:release_digest] @source = hash[:source] end |
Instance Attribute Details
#artifacts ⇒ Object
Returns the value of attribute artifacts.
23 24 25 |
# File 'lib/rafflesia/datasets/relation_release_publication_request.rb', line 23 def artifacts @artifacts end |
#created_at ⇒ Object
Returns the value of attribute created_at.
23 24 25 |
# File 'lib/rafflesia/datasets/relation_release_publication_request.rb', line 23 def created_at @created_at end |
#database ⇒ Object
Returns the value of attribute database.
23 24 25 |
# File 'lib/rafflesia/datasets/relation_release_publication_request.rb', line 23 def database @database end |
#dataset_kind ⇒ Object
Returns the value of attribute dataset_kind.
23 24 25 |
# File 'lib/rafflesia/datasets/relation_release_publication_request.rb', line 23 def dataset_kind @dataset_kind end |
#dry_run ⇒ Object
Returns the value of attribute dry_run.
23 24 25 |
# File 'lib/rafflesia/datasets/relation_release_publication_request.rb', line 23 def dry_run @dry_run end |
#manifest_object_id ⇒ Object
Returns the value of attribute manifest_object_id.
23 24 25 |
# File 'lib/rafflesia/datasets/relation_release_publication_request.rb', line 23 def manifest_object_id @manifest_object_id end |
#manifest_path ⇒ Object
Returns the value of attribute manifest_path.
23 24 25 |
# File 'lib/rafflesia/datasets/relation_release_publication_request.rb', line 23 def manifest_path @manifest_path end |
#manifest_sha_256 ⇒ Object
Returns the value of attribute manifest_sha_256.
23 24 25 |
# File 'lib/rafflesia/datasets/relation_release_publication_request.rb', line 23 def manifest_sha_256 @manifest_sha_256 end |
#manifest_size_bytes ⇒ Object
Returns the value of attribute manifest_size_bytes.
23 24 25 |
# File 'lib/rafflesia/datasets/relation_release_publication_request.rb', line 23 def manifest_size_bytes @manifest_size_bytes end |
#release ⇒ Object
Returns the value of attribute release.
23 24 25 |
# File 'lib/rafflesia/datasets/relation_release_publication_request.rb', line 23 def release @release end |
#release_digest ⇒ Object
Returns the value of attribute release_digest.
23 24 25 |
# File 'lib/rafflesia/datasets/relation_release_publication_request.rb', line 23 def release_digest @release_digest end |
#source ⇒ Object
Returns the value of attribute source.
23 24 25 |
# File 'lib/rafflesia/datasets/relation_release_publication_request.rb', line 23 def source @source end |