Class: Cerbos::Hub::Stores::Input::ChangeDetails
- Inherits:
-
Object
- Object
- Cerbos::Hub::Stores::Input::ChangeDetails
- Defined in:
- lib/cerbos/hub/stores/input/change_details.rb,
lib/cerbos/hub/stores/input/change_details/origin.rb,
lib/cerbos/hub/stores/input/change_details/uploader.rb
Overview
Metadata describing a change that was made to a store.
Defined Under Namespace
Instance Attribute Summary collapse
-
#description ⇒ String
readonly
Description of the change.
-
#origin ⇒ Origin?
readonly
Origin of the change.
-
#uploader ⇒ Uploader?
readonly
Metadata describing the uploader who made the change.
Instance Method Summary collapse
-
#initialize(description: "", origin: nil, uploader: nil) ⇒ ChangeDetails
constructor
Specify metadata describing a change that was made to a store.
Constructor Details
#initialize(description: "", origin: nil, uploader: nil) ⇒ ChangeDetails
Specify metadata describing a change that was made to a store.
31 32 33 34 35 |
# File 'lib/cerbos/hub/stores/input/change_details.rb', line 31 def initialize(description: "", origin: nil, uploader: nil) @description = description @origin = Cerbos::Input.coerce_optional(origin, Origin) @uploader = Cerbos::Input.coerce_optional(uploader, Uploader) end |
Instance Attribute Details
#description ⇒ String (readonly)
Description of the change.
12 13 14 |
# File 'lib/cerbos/hub/stores/input/change_details.rb', line 12 def description @description end |
#origin ⇒ Origin? (readonly)
Origin of the change.
18 19 20 |
# File 'lib/cerbos/hub/stores/input/change_details.rb', line 18 def origin @origin end |
#uploader ⇒ Uploader? (readonly)
Metadata describing the uploader who made the change.
24 25 26 |
# File 'lib/cerbos/hub/stores/input/change_details.rb', line 24 def uploader @uploader end |