client/lib/deltacloud/client/methods/api.rb
# +Hash+ of all features supported by current connection
#
+Hash+ of all features supported by current connection
+ Hash + of all features supported by current connection
def features
        entrypoint.to_xml.root.xpath('link/feature').inject(Hash.new(Array.new)) do |result, feature|
          result[feature.parent['rel']] += [feature['name']]
          result
        end
      end
def features entrypoint . to_xml . root . xpath ( 'link/feature' ) . inject ( Hash . new ( Array . new ) ) do | result , feature | result [ feature . parent [ 'rel' ] ] += [ feature [ 'name' ] ] result end end
+Hash+ of all features supported by current connection
+ Hash + of all features supported by current connection