Class: Blog::AuthorsController

Inherits:
MainController
  • Object
show all
Defined in:
lib/nexmo_developer/app/controllers/blog/authors_controller.rb

Instance Method Summary collapse

Instance Method Details

#showObject



2
3
4
5
6
7
# File 'lib/nexmo_developer/app/controllers/blog/authors_controller.rb', line 2

def show
  data       = BlogpostParser.fetch_all_published
  attributes = AuthorParser.fetch_author(params[:name]) || {}

  @author    = Blog::Author.new(attributes).build_all_blogposts_from_author(data)
end