Class: Conjur::Policy::Types::Record

Inherits:
Base show all
Defined in:
lib/conjur/policy/types/records.rb

Overview

A createable record type.

Direct Known Subclasses

Group, Host, HostFactory, Layer, Policy, Resource, Role, User, Variable, Webservice

Instance Method Summary collapse

Methods inherited from Base

#custom_attribute_names, #id_attribute, inherited, #referenced_records, register_yaml_type, 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

Instance Method Details

#resource?Boolean

Returns:

  • (Boolean)


10
11
12
# File 'lib/conjur/policy/types/records.rb', line 10

def resource?
  false
end

#role?Boolean

Returns:

  • (Boolean)


7
8
9
# File 'lib/conjur/policy/types/records.rb', line 7

def role?
  false
end