Module: Scouter::Base::Connection

Included in:
Object
Defined in:
lib/scouter/base/connection.rb

Instance Method Summary collapse

Instance Method Details

#get_response(url) ⇒ String

get response by url

Parameters:

  • url (String)

    url which returns json

Returns:

  • (String)

    object by http request



7
8
9
# File 'lib/scouter/base/connection.rb', line 7

def get_response(url)
  open(url).read
end