class ButterCMS::Parsers::TagsObjects

Public Class Methods

call(tags) click to toggle source

Returns array of tag objects created from given array of attributes

@return [Array<ButterCMS::Tag>]

# 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