Class: Lotus::Atom::Category
- Inherits:
-
Atom::Category
- Object
- Atom::Category
- Lotus::Atom::Category
- Defined in:
- lib/lotus/atom/category.rb
Overview
This class represents an Lotus Category object.
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.from_canonical(obj) ⇒ Object
17 18 19 20 21 22 23 24 25 26 27 28 |
# File 'lib/lotus/atom/category.rb', line 17 def self.from_canonical(obj) hash = obj.to_hash if hash[:base] hash[:xml_base] = hash[:base] end if hash[:lang] hash[:xml_lang] = hash[:lang] end hash.delete :base hash.delete :lang self.new(hash) end |