Class: Cerbos::Hub::Stores::Input::ChangeDetails::Uploader
- Inherits:
-
Object
- Object
- Cerbos::Hub::Stores::Input::ChangeDetails::Uploader
- Defined in:
- lib/cerbos/hub/stores/input/change_details/uploader.rb
Overview
Metadata describing the uploader who made a change to a store.
Instance Attribute Summary collapse
-
#metadata ⇒ Cerbos::Input::Attributes
readonly
User-defined metadata about the origin of the change.
-
#name ⇒ String
readonly
The name of the uploader.
Instance Method Summary collapse
-
#initialize(name: "", metadata: {}) ⇒ Uploader
constructor
Specify metadata describing the uploader who made a change to a store.
Constructor Details
#initialize(name: "", metadata: {}) ⇒ Uploader
Specify metadata describing the uploader who made a change to a store.
24 25 26 27 |
# File 'lib/cerbos/hub/stores/input/change_details/uploader.rb', line 24 def initialize(name: "", metadata: {}) @name = name @metadata = Cerbos::Input.coerce_required(, Cerbos::Input::Attributes) end |
Instance Attribute Details
#metadata ⇒ Cerbos::Input::Attributes (readonly)
User-defined metadata about the origin of the change.
18 19 20 |
# File 'lib/cerbos/hub/stores/input/change_details/uploader.rb', line 18 def @metadata end |
#name ⇒ String (readonly)
The name of the uploader.
13 14 15 |
# File 'lib/cerbos/hub/stores/input/change_details/uploader.rb', line 13 def name @name end |