Class: Mumuki::Bibliotheca::App

Inherits:
Sinatra::Application
  • Object
show all
Defined in:
lib/mumuki/bibliotheca/sinatra.rb,
lib/mumuki/bibliotheca/sinatra/books.rb,
lib/mumuki/bibliotheca/sinatra/guides.rb,
lib/mumuki/bibliotheca/sinatra/topics.rb,
lib/mumuki/bibliotheca/sinatra/languages.rb,
lib/mumuki/bibliotheca/sinatra/organization.rb

Instance Method Summary collapse

Instance Method Details

#transform(language) ⇒ Object



6
7
8
9
10
# File 'lib/mumuki/bibliotheca/sinatra/languages.rb', line 6

def transform(language)
  language
    .to_resource_h
    .replace_key!(:runner_url, :test_runner_url)
end