Method: ArticleJSON::Elements::Paragraph.parse_hash

Defined in:
lib/article_json/elements/paragraph.rb

.parse_hash(hash) ⇒ ArticleJSON::Elements::Paragraph

Create a paragraph element from Hash



48
49
50
# File 'lib/article_json/elements/paragraph.rb', line 48

def parse_hash(hash)
  new(content: parse_hash_list(hash[:content]))
end