diff --git a/lib/restfulie/common/converter/open_search.rb b/lib/restfulie/common/converter/open_search.rb
index 2a53e0a2..8fb49b68 100644
--- a/lib/restfulie/common/converter/open_search.rb
+++ b/lib/restfulie/common/converter/open_search.rb
@@ -8,7 +8,7 @@ class Converter::OpenSearch#:nodoc:
class Restfulie::Common::Converter::OpenSearch
- def unmarshal(xml)
+ def self.unmarshal(xml)
hash = Hash.from_xml(xml)
descriptor = Descriptor.new(hash)
end
diff --git a/spec/unit/common/converter/opensearch/descriptor_spec.rb b/spec/unit/common/converter/opensearch/descriptor_spec.rb
index 1cfc6af7..c2e7aa95 100644
--- a/spec/unit/common/converter/opensearch/descriptor_spec.rb
+++ b/spec/unit/common/converter/opensearch/descriptor_spec.rb
@@ -13,7 +13,7 @@
admin@restbuy.com
'
- @descriptor = Restfulie::Common::Converter::OpenSearch.new.unmarshal(xml)
+ @descriptor = Restfulie::Common::Converter::OpenSearch.unmarshal(xml)
end
it "should unmarshall opensearch xml descriptions" do