Class: Shibkit::MetaMeta::Service

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

Constant Summary collapse

ROOT_ELEMENT =

Element and attribute used to select XML for new objects

'AttributeConsumingService'
TARGET_ATTR =
'index'
REQUIRED_QUACKS =
[:index]

Constants inherited from MetadataItem

MetadataItem::NAMESPACES

Instance Attribute Summary collapse

Attributes inherited from MetadataItem

#read_at

Instance Method Summary collapse

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

#attributesObject

Returns the value of attribute attributes.



41
42
43
# File 'lib/shibkit/meta_meta/service.rb', line 41

def attributes
  @attributes
end

#defaultObject Also known as: default?

Returns the value of attribute default.



43
44
45
# File 'lib/shibkit/meta_meta/service.rb', line 43

def default
  @default
end

#descriptionsObject

Returns the value of attribute descriptions.



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

def descriptions
  @descriptions
end

#indexObject

Returns the value of attribute index.



38
39
40
# File 'lib/shibkit/meta_meta/service.rb', line 38

def index
  @index
end

#namesObject

Returns the value of attribute names.



32
33
34
# File 'lib/shibkit/meta_meta/service.rb', line 32

def names
  @names
end

Instance Method Details

#description(lang = :en) ⇒ Object



53
54
55
56
57
# File 'lib/shibkit/meta_meta/service.rb', line 53

def description(lang=:en)
  
  return descriptions[lang]
  
end

#name(lang = :en) ⇒ Object



47
48
49
50
51
# File 'lib/shibkit/meta_meta/service.rb', line 47

def name(lang=:en)
  
  return names[lang]
  
end

#to_sObject



59
60
61
62
63
# File 'lib/shibkit/meta_meta/service.rb', line 59

def to_s
  
  return name(:en)
  
end