Class: SDL::Base::Fact

Inherits:
Type
  • Object
show all
Defined in:
lib/sdl/base/fact.rb,
lib/sdl/exporters/xml_mapping.rb

Overview

A fact, which is known about a service.

Facts are defined by using a ServiceCompendium.

Instance Attribute Summary collapse

Attributes inherited from Type

#identifier, #parent_index

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Type

#annotated?, #annotations, documentation_key, #documentation_key, is_sub?, list_item?, local_name, local_name=, multi_property?, properties, #property_values, propertyless?, #rdf_object, single_property, single_property?, #to_s, to_s, xsd_element_name

Methods included from URIMappedResource

#uri

Instance Attribute Details

#serviceObject

Returns the value of attribute service.



6
7
8
# File 'lib/sdl/base/fact.rb', line 6

def service
  @service
end

Class Method Details

.xsd_type_nameObject



27
28
29
# File 'lib/sdl/exporters/xml_mapping.rb', line 27

def xsd_type_name
  "#{local_name}Fact"
end

Instance Method Details

#parentObject



8
9
10
# File 'lib/sdl/base/fact.rb', line 8

def parent
  service
end