Implements the base class for all OCCI resources, this class can be used directly to create resource instances.
@attr links [Set] set of links associated with this resource instance @attr summary [String] simple human-readable description of this resource instance
@author Boris Parak <parak@cesnet.cz>
@param links [Set] set of links
# File lib/occi/core/resource.rb, line 24 def links=(new_links) raise Occi::Core::Errors::InstanceValidationError, 'Missing valid links' unless new_links @links ||= Set.new @links.each { |l| remove_link(l) } new_links.each { |l| add_link(l) } @links end
@return [String] resource summary
# File lib/occi/core/resource.rb, line 14 def summary self['occi.core.summary'] end
@param summary [String] resource summary
# File lib/occi/core/resource.rb, line 19 def summary=(summary) self['occi.core.summary'] = summary end