Module: Devcenter::Client
Instance Method Summary
collapse
Methods included from Helpers
#article_api_path, #article_path, #article_url?, #devcenter_base_url, #html_file_path, #md_file_path, #search_api_path, #slug_from_article_url, #write_file
Instance Method Details
#client ⇒ Object
18
19
20
|
# File 'lib/devcenter/client.rb', line 18
def client
@client ||= Excon.new(devcenter_base_url, :headers => { 'User-agent' => 'DevCenterCLI'})
end
|
#get(args) ⇒ Object
14
15
16
|
# File 'lib/devcenter/client.rb', line 14
def get(args)
client.get(args)
end
|
#head(args) ⇒ Object
10
11
12
|
# File 'lib/devcenter/client.rb', line 10
def head(args)
client.head(args)
end
|