wordpress-import/lib/wordpress/category.rb
2014-03-11 12:03:51 -07:00

18 lines
245 B
Ruby

module WordPressImport
class Category
attr_accessor :name
def initialize(text)
@name = text
end
def ==(other)
name == other.name
end
def to_rails
Tag.find_or_create_by_title(name)
end
end
end