Sha256: 8966292f36b68a6570bf53bbe1283d6a3e0c0056a124c625791894b642d14ba9

Contents?: true

Size: 387 Bytes

Versions: 2

Compression:

Stored size: 387 Bytes

Contents

class Muddyit::Sites::Site::Page::ContentData < Muddyit::Generic

  def initialize(muddyit, attributes)
    super(muddyit, attributes)
    populate_terms
  end


  protected

  def populate_terms
    terms = []
    if @attributes.has_key?(:terms)    
      @attributes[:terms].each do |term|
         terms.push term['term']
      end
      @attributes[:terms] = terms
    end
  end

end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
monkeyhelper-muddyit_fu-0.1.0 lib/muddyit/content_data.rb
monkeyhelper-muddyit_fu-0.1.1 lib/muddyit/content_data.rb