Module: Octokit::Client::Say

Included in:
Octokit::Client
Defined in:
lib/octokit/client/say.rb

Overview

Methods for the unpublished Octocat API

Instance Method Summary collapse

Instance Method Details

#say(text = nil, options = {}) ⇒ String Also known as: octocat

Return a nifty ASCII Octocat with GitHub wisdom or your own

Returns:

  • (String)


11
12
13
14
# File 'lib/octokit/client/say.rb', line 11

def say(text = nil, options = {})
  options[:s] = text if text
  get "octocat", options
end