lib/lookbook/preview_group.rb in lookbook-0.9.8 vs lib/lookbook/preview_group.rb in lookbook-1.0.0.beta.0
- old
+ new
@@ -1,22 +1,17 @@
module Lookbook
- class PreviewGroup
- include Utils
-
+ class PreviewGroup < Entity
attr_reader :name, :examples, :preview
def initialize(name, preview, examples)
@name = name
@preview = preview
@examples = examples
+ super("#{@preview.path}/#{name}")
end
- def id
- generate_id(lookup_path)
- end
-
- def path
- "#{@preview.path}/#{name}"
+ def url_path
+ inspect_path lookup_path
end
def label
name.titleize
end