module Conjur::Policy::Types class Member < Base def initialize role = nil self.role = role end attribute :role attribute :admin, kind: :boolean, singular: true self.description = %( Designate the members of a [Role](#reference/role) such as a [Group](#reference/group). ) self.example = %( - !user dee - !user dum - !group brothers - !grant role: !group brothers members: - !user dee - !member dum role: !user dum admin: true ) def to_s "#{role} #{admin ? 'with' : 'without'} admin option" end end end