Class: Teleportd::Request

Inherits:
Object
  • Object
show all
Defined in:
lib/teleportd/request.rb

Instance Method Summary collapse

Constructor Details

#initialize(uri) ⇒ Request

Returns a new instance of Request.



3
4
5
# File 'lib/teleportd/request.rb', line 3

def initialize uri
  @uri = Config.base_url << uri
end

Instance Method Details

#parsed_responseObject



7
8
9
# File 'lib/teleportd/request.rb', line 7

def parsed_response
  JSON.parse(response)
end