Class: Rafflesia::MountUpsertRequest
- Inherits:
-
Types::BaseModel
- Object
- Types::BaseModel
- Rafflesia::MountUpsertRequest
- Defined in:
- lib/rafflesia/registry/mount_upsert_request.rb
Constant Summary collapse
- HASH_ATTRS =
{ signature: :signature, signing_key_id: :signing_key_id, signing_public_key: :signing_public_key, snapshot: :snapshot }.freeze
Instance Attribute Summary collapse
-
#signature ⇒ Object
Returns the value of attribute signature.
-
#signing_key_id ⇒ Object
Returns the value of attribute signing_key_id.
-
#signing_public_key ⇒ Object
Returns the value of attribute signing_public_key.
-
#snapshot ⇒ Object
Returns the value of attribute snapshot.
Instance Method Summary collapse
-
#initialize(json) ⇒ MountUpsertRequest
constructor
A new instance of MountUpsertRequest.
Constructor Details
#initialize(json) ⇒ MountUpsertRequest
Returns a new instance of MountUpsertRequest.
21 22 23 24 25 26 27 28 |
# File 'lib/rafflesia/registry/mount_upsert_request.rb', line 21 def initialize(json) super() hash = self.class.normalize(json) @signature = hash[:signature] @signing_key_id = hash[:signing_key_id] @signing_public_key = hash[:signing_public_key] @snapshot = hash[:snapshot] ? Rafflesia::Snapshot.new(hash[:snapshot]) : nil end |
Instance Attribute Details
#signature ⇒ Object
Returns the value of attribute signature.
15 16 17 |
# File 'lib/rafflesia/registry/mount_upsert_request.rb', line 15 def signature @signature end |
#signing_key_id ⇒ Object
Returns the value of attribute signing_key_id.
15 16 17 |
# File 'lib/rafflesia/registry/mount_upsert_request.rb', line 15 def signing_key_id @signing_key_id end |
#signing_public_key ⇒ Object
Returns the value of attribute signing_public_key.
15 16 17 |
# File 'lib/rafflesia/registry/mount_upsert_request.rb', line 15 def signing_public_key @signing_public_key end |
#snapshot ⇒ Object
Returns the value of attribute snapshot.
15 16 17 |
# File 'lib/rafflesia/registry/mount_upsert_request.rb', line 15 def snapshot @snapshot end |