Sha256: 75c2c72cad5739cad2ad07f48a12fa706f5d5682225c2fd9eacc48a15955643c

Contents?: true

Size: 399 Bytes

Versions: 7

Compression:

Stored size: 399 Bytes

Contents

class Muddyit::Sites::Site::Pages::Page::ExtractedContent < 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

7 entries across 7 versions & 2 rubygems

Version Path
monkeyhelper-muddyit_fu-0.2.0 lib/muddyit/sites/pages/page/extracted_content.rb
monkeyhelper-muddyit_fu-0.2.1 lib/muddyit/sites/pages/page/extracted_content.rb
monkeyhelper-muddyit_fu-0.2.2 lib/muddyit/sites/pages/page/extracted_content.rb
monkeyhelper-muddyit_fu-0.2.3 lib/muddyit/sites/pages/page/extracted_content.rb
monkeyhelper-muddyit_fu-0.2.4 lib/muddyit/sites/pages/page/extracted_content.rb
muddyit_fu-0.2.8 lib/muddyit/sites/pages/page/extracted_content.rb
muddyit_fu-0.2.6 lib/muddyit/sites/pages/page/extracted_content.rb