Module: GitHub::Client::Octocat

Included in:
GitHub::Client
Defined in:
lib/github_api_v3/client/octocat.rb

Instance Method Summary collapse

Instance Method Details

#octocat(text = nil) ⇒ String

Retrieve an Octocat with a message of your choice, or one chosen by GitHub. :)

Returns:

  • (String)


10
11
12
13
14
# File 'lib/github_api_v3/client/octocat.rb', line 10

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