Class: Shibkit::MetaMeta::Service
- Inherits:
-
MetadataItem
- Object
- MetadataItem
- Shibkit::MetaMeta::Service
- 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
Instance Attribute Summary collapse
-
#attributes ⇒ Object
Returns the value of attribute attributes.
-
#default ⇒ Object
(also: #default?)
Returns the value of attribute default.
-
#descriptions ⇒ Object
Returns the value of attribute descriptions.
-
#index ⇒ Object
Returns the value of attribute index.
-
#names ⇒ Object
Returns the value of attribute names.
Attributes inherited from MetadataItem
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
#attributes ⇒ Object
Returns the value of attribute attributes.
41 42 43 |
# File 'lib/shibkit/meta_meta/service.rb', line 41 def attributes @attributes end |
#default ⇒ Object 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 |
#descriptions ⇒ Object
Returns the value of attribute descriptions.
35 36 37 |
# File 'lib/shibkit/meta_meta/service.rb', line 35 def descriptions @descriptions end |
#index ⇒ Object
Returns the value of attribute index.
38 39 40 |
# File 'lib/shibkit/meta_meta/service.rb', line 38 def index @index end |
#names ⇒ Object
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_s ⇒ Object
59 60 61 62 63 |
# File 'lib/shibkit/meta_meta/service.rb', line 59 def to_s return name(:en) end |