Class: ButterCMS::Parsers::TagsObjects

Inherits:
Object
  • Object
show all
Defined in:
lib/butter_cms/parsers/tags_objects.rb

Class Method Summary collapse

Class Method Details

.call(tags) ⇒ Array<ButterCMS::Tag>

Returns array of tag objects created from given array of attributes

Returns:



7
8
9
10
11
# File 'lib/butter_cms/parsers/tags_objects.rb', line 7

def self.call(tags)
  tags.map do |tag_attributes|
    ::ButterCMS::Tag.new(tag_attributes)
  end
end