Class: Conjur::Policy::Types::Member
- Defined in:
- lib/conjur/policy/types/member.rb
Instance Method Summary collapse
-
#initialize(role = nil) ⇒ Member
constructor
A new instance of Member.
- #to_s ⇒ Object
Methods inherited from Base
#custom_attribute_names, #id_attribute, inherited, #referenced_records, register_yaml_type, #resource?, #role?, short_name
Methods included from InheritableAttribute
inherit_for, #inheritable_attr
Methods included from TypeChecking
#expect_array, #expect_boolean, #expect_hash, #expect_integer, #expect_layer, #expect_member, #expect_permission, #expect_record, #expect_resource, #expect_role, #expect_string, #expect_type, #test_resource, #test_role
Methods included from AttributeDefinition
#attribute, #define_field, #define_plural_field, #field?, #yaml_field?, #yaml_field_type
Constructor Details
#initialize(role = nil) ⇒ Member
Returns a new instance of Member.
3 4 5 |
# File 'lib/conjur/policy/types/member.rb', line 3 def initialize role = nil self.role = role end |
Instance Method Details
#to_s ⇒ Object
33 34 35 |
# File 'lib/conjur/policy/types/member.rb', line 33 def to_s "#{role} #{admin ? 'with' : 'without'} admin option" end |