Class: Cerbos::Hub::Stores::Input::ChangeDetails::Origin::Internal
- Inherits:
-
Cerbos::Hub::Stores::Input::ChangeDetails::Origin
- Object
- Cerbos::Hub::Stores::Input::ChangeDetails::Origin
- Cerbos::Hub::Stores::Input::ChangeDetails::Origin::Internal
- Defined in:
- lib/cerbos/hub/stores/input/change_details/origin.rb
Overview
Details of a change made to a store by an internal application.
Instance Attribute Summary collapse
-
#metadata ⇒ Cerbos::Input::Attributes
readonly
User-defined metadata about the origin of the change.
-
#source ⇒ String
readonly
The source of the change.
Instance Method Summary collapse
-
#initialize(source: "", metadata: {}) ⇒ Internal
constructor
Specify details of a change made to a store by an internal application.
Constructor Details
#initialize(source: "", metadata: {}) ⇒ Internal
Specify details of a change made to a store by an internal application.
119 120 121 122 |
# File 'lib/cerbos/hub/stores/input/change_details/origin.rb', line 119 def initialize(source: "", metadata: {}) @source = source @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.
113 114 115 |
# File 'lib/cerbos/hub/stores/input/change_details/origin.rb', line 113 def @metadata end |
#source ⇒ String (readonly)
The source of the change.
108 109 110 |
# File 'lib/cerbos/hub/stores/input/change_details/origin.rb', line 108 def source @source end |