wordpress-import/lib/wordpress/category.rb
Marc Remolt a45f502f44 Conversion in a gem finished
* specs are working again
* added railitie
* added missing migration (acts-as-taggable)
* cleanups
2011-06-02 14:41:31 +02:00

20 lines
299 B
Ruby

module Refinery
module WordPress
class Category
attr_accessor :name
def initialize(text)
@name = text
end
def ==(other)
name == other.name
end
def to_refinery
BlogCategory.find_or_create_by_title(name)
end
end
end
end