Class: OMF::SFA::Resource::GroupComponent
- Extended by:
- Base::ClassMethods
- Includes:
- Base::InstanceMethods
- Defined in:
- lib/omf-sfa/resource/group_component.rb
Overview
A GroupComponent
is a group with a component interface. This allows it to be addressed and used in an SFA context.
Instance Method Summary collapse
Methods included from Base::ClassMethods
_sfa_add_ns, _sfa_prefix_for_namespace, _to_sfa_xml, default_component_manager_id, default_domain, descendants, from_sfa, sfa, sfa_add_namespace, sfa_add_namespaces_to_document, sfa_cast_property_value, sfa_class, sfa_def_for, sfa_defs, sfa_suppress_id, sfa_suppress_id?, to_rspec
Methods included from Base::InstanceMethods
#_to_sfa_property_hash, #_to_sfa_property_xml, #_to_sfa_xml, #_xml_name, #component_id, #component_manager_id, #default_domain, #from_sfa, #resource_type, #sfa_class, #sfa_id, #sfa_property, #to_sfa_hash, #to_sfa_hash_short, #to_sfa_short_xml, #to_sfa_xml
Methods inherited from OGroup
#add_members, #all_resources, #each_resource, #empty_group, #group?, #member?, #members, #members=, #resource_type, #to_hash_long
Methods inherited from OResource
#_dirty_self?, #_oprops_to_hash, #all_resources, #clone, #default_href_prefix, #destroy, #destroy!, #dirty_self?, #each_resource, #group?, #href, href_resolver, init, json_create, #oproperties_as_hash, #oproperty, oproperty, #oproperty_array_get, #oproperty_get, #oproperty_set, prop_all, #remove_from_all_groups, #resource_type, #status, #to_hash, #to_hash_brief, #to_hash_long, #to_json, #uuid
Instance Method Details
#_to_sfa_components_property_hash(resources, pdef, href2obj, opts) ⇒ Object
24 25 26 27 28 29 30 31 |
# File 'lib/omf-sfa/resource/group_component.rb', line 24 def _to_sfa_components_property_hash(resources, pdef, href2obj, opts) opts = opts.dup # TODO: What was that used for? Does this assume that prefix include slice name? #opts[:href_prefix] = (opts[:href_prefix] || '/') + 'resources/' resources.collect do |o| o.to_sfa_hash(href2obj, opts) end end |
#components ⇒ Object
20 21 22 |
# File 'lib/omf-sfa/resource/group_component.rb', line 20 def components self.contains_resources end |