Class: ButterCMS::Parsers::AuthorObject

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

Class Method Summary collapse

Class Method Details

.call(author) ⇒ ButterCMS::Author

Returns the new instance of author object from the given attributes

Returns:



7
8
9
# File 'lib/butter_cms/parsers/author_object.rb', line 7

def self.call(author)
  ::ButterCMS::Author.new(author)
end