Sha256: 00760b01ad57c3452e37bab2e6bd579be6eccf3e900bb18b256db436155b3648
Contents?: true
Size: 330 Bytes
Versions: 1
Compression:
Stored size: 330 Bytes
Contents
module Shoppr class FeatureGroup attr_accessor :features def initialize(cat_mash) Shoppr.map_mash_attrs(self, cat_mash) if self.feature.is_a?(Array) @features = self.feature.map {|f| Feature.new(f)} else @features = [Feature.new(self.feature)] end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
shoppr-0.2.3 | lib/shoppr/feature_group.rb |