Class: HintMe::API::Client

Inherits:
Object
  • Object
show all
Defined in:
lib/hintme/api/client.rb

Overview

Client for the DevHints API

Constant Summary collapse

RAW_REPO_URL =

Base URL for the DevHints cheatsheets github repository

'https://raw.githubusercontent.com/rstacruz/cheatsheets/master/'

Instance Method Summary collapse

Instance Method Details

#search_cheatsheet_for_topic(topic) ⇒ Object

searches and downloads the raw markdown representation of cheatsheet



18
19
20
# File 'lib/hintme/api/client.rb', line 18

def search_cheatsheet_for_topic(topic)
  download_cheatsheet(topic) if cheatsheet_exists?(topic)
end