lib/rcap/cap_1_0/resource.rb in rcap-1.1.0 vs lib/rcap/cap_1_0/resource.rb in rcap-1.1.1

- old
+ new

@@ -70,13 +70,13 @@ self.resource_desc end def self.from_xml_element( resource_xml_element ) # :nodoc: resource = self.new( :resource_desc => RCAP.xpath_text( resource_xml_element, RESOURCE_DESC_XPATH, Alert::XMLNS ), - :uri => RCAP.xpath_text( resource_xml_element, URI_XPATH, Alert::XMLNS ), - :mime_type => RCAP.xpath_text( resource_xml_element, MIME_TYPE_XPATH, Alert::XMLNS ), - :size => RCAP.xpath_text( resource_xml_element, SIZE_XPATH, Alert::XMLNS ), - :digest => RCAP.xpath_text( resource_xml_element, DIGEST_XPATH, Alert::XMLNS )) + :uri => RCAP.xpath_text( resource_xml_element, URI_XPATH, Alert::XMLNS ), + :mime_type => RCAP.xpath_text( resource_xml_element, MIME_TYPE_XPATH, Alert::XMLNS ), + :size => RCAP.xpath_text( resource_xml_element, SIZE_XPATH, Alert::XMLNS ), + :digest => RCAP.xpath_text( resource_xml_element, DIGEST_XPATH, Alert::XMLNS )) end RESOURCE_DESC_YAML = "Resource Description" # :nodoc: URI_YAML = "URI" # :nodoc: MIME_TYPE_YAML = "Mime Type" # :nodoc: