Skip to content
This repository has been archived by the owner on Jun 27, 2019. It is now read-only.

2223-3 #294

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

2223-3 #294

wants to merge 3 commits into from

Conversation

VDmitryO
Copy link
Contributor

@VDmitryO VDmitryO commented Jul 27, 2018

Номер

2223

Номер задания

3

Ссылка на видео с демо

https://youtu.be/r1sAs2qrgYo

Комментарии

Выполнено

headers = { 'Content-Type' => 'application/json',
'Ocp-Apim-Subscription-Key' => File.read('settings/azure_key.txt') }
connection.post do |request|
request.url PATH

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

FeatureEnvy: Azure#response refers to 'request' more than self (maybe move it to another class?). More info.

require 'json'
require 'mechanize'
require 'faraday'
require 'pry'
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this gem is used in dev mode
you should not require 'pry' in production.

@@ -0,0 +1,47 @@
require 'faraday'
require 'pry'
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

pry only in dev mode

end

def connection
headers = {
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

move headers to constant

Copy link

@kislak kislak left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants