Class: Qa::LinkedData::Config::ContextMap
- Inherits:
-
Object
- Object
- Qa::LinkedData::Config::ContextMap
- Defined in:
- app/models/qa/linked_data/config/context_map.rb
Instance Attribute Summary collapse
-
#properties ⇒ Object
readonly
- Array<Qa::LinkedData::Config::ContextPropertyMap>
-
set of property map models.
Instance Method Summary collapse
- #group_label(group_id) ⇒ Object
-
#initialize(context_map = {}, prefixes = {}) ⇒ ContextMap
constructor
A new instance of ContextMap.
Constructor Details
#initialize(context_map = {}, prefixes = {}) ⇒ ContextMap
Returns a new instance of ContextMap.
42 43 44 45 46 47 |
# File 'app/models/qa/linked_data/config/context_map.rb', line 42 def initialize(context_map = {}, prefixes = {}) @context_map = context_map @prefixes = prefixes extract_groups extract_properties end |
Instance Attribute Details
#properties ⇒ Object (readonly)
- Array<Qa::LinkedData::Config::ContextPropertyMap>
-
set of property map models
6 7 8 |
# File 'app/models/qa/linked_data/config/context_map.rb', line 6 def properties @properties end |
Instance Method Details
#group_label(group_id) ⇒ Object
49 50 51 |
# File 'app/models/qa/linked_data/config/context_map.rb', line 49 def group_label(group_id) groups[group_id] end |