Class: Shibkit::MetaMeta::Attribute

Inherits:
MetadataItem show all
Defined in:
lib/shibkit/meta_meta/attribute.rb

Overview

Class to represent the metadata of the organisation owning a Shibboleth entity

Direct Known Subclasses

RequestedAttribute

Constant Summary collapse

ROOT_ELEMENT =

Element and attribute used to select XML for new objects

'Attribute'
TARGET_ATTR =
'Name'
REQUIRED_QUACKS =
[:Name, :NameFormat]

Constants inherited from MetadataItem

MetadataItem::NAMESPACES

Instance Attribute Summary collapse

Attributes inherited from MetadataItem

#read_at

Method Summary

Methods inherited from MetadataItem

#filter, #from_xml, #hashed_id, #initialize, #parsed_xml, #purge_xml, #source_xml, #textify_xml, #to_hash, #to_rdf, #to_xml

Constructor Details

This class inherits a constructor from Shibkit::MetaMeta::MetadataItem

Instance Attribute Details

#friendly_nameObject

Returns the value of attribute friendly_name.



37
38
39
# File 'lib/shibkit/meta_meta/attribute.rb', line 37

def friendly_name
  @friendly_name
end

#is_requiredObject Also known as: required?, is_required?

Returns the value of attribute is_required.



33
34
35
# File 'lib/shibkit/meta_meta/attribute.rb', line 33

def is_required
  @is_required
end

#nameObject

Returns the value of attribute name.



31
32
33
# File 'lib/shibkit/meta_meta/attribute.rb', line 31

def name
  @name
end

#name_formatObject

Returns the value of attribute name_format.



35
36
37
# File 'lib/shibkit/meta_meta/attribute.rb', line 35

def name_format
  @name_format
end

#valuesObject

Returns the value of attribute values.



40
41
42
# File 'lib/shibkit/meta_meta/attribute.rb', line 40

def values
  @values
end