Class: Cerbos::Hub::Stores::Input::ChangeDetails::Uploader

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Constructor Details

#initialize(name: "", metadata: {}) ⇒ Uploader

Specify metadata describing the uploader who made a change to a store.

Parameters:

  • name (String) (defaults to: "")

    the name of the uploader.

  • metadata (Cerbos::Input::Attributes, Hash) (defaults to: {})

    user-defined metadata about the origin of the change.



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

#metadataCerbos::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

#nameString (readonly)

The name of the uploader.

Returns:

  • (String)


13
14
15
# File 'lib/cerbos/hub/stores/input/change_details/uploader.rb', line 13

def name
  @name
end