Sha256: 230b9a6071fe33af5e743b278e3b71ebee0804a4075c7bbfcae7d3122f0149db

Contents?: true

Size: 410 Bytes

Versions: 6

Compression:

Stored size: 410 Bytes

Contents

class Muddyit::Collections::Collection::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

6 entries across 6 versions & 1 rubygems

Version Path
muddyit_fu-0.2.14 lib/muddyit/collections/pages/page/extracted_content.rb
muddyit_fu-0.2.13 lib/muddyit/collections/pages/page/extracted_content.rb
muddyit_fu-0.2.12 lib/muddyit/collections/pages/page/extracted_content.rb
muddyit_fu-0.2.11 lib/muddyit/collections/pages/page/extracted_content.rb
muddyit_fu-0.2.10 lib/muddyit/collections/pages/page/extracted_content.rb
muddyit_fu-0.2.9 lib/muddyit/collections/pages/page/extracted_content.rb