Class: Esable::Client

Inherits:
Object
  • Object
show all
Defined in:
lib/esable/client.rb

Instance Method Summary collapse

Instance Method Details

#get_couple(id) ⇒ Object



6
7
8
9
10
# File 'lib/esable/client.rb', line 6

def get_couple(id)
  return { status: 404 } if id.nil?
  uri = URI('http://ec2-52-2-88-21.compute-1.amazonaws.com:9200/couple/jdbc/' << id)
  Net::HTTP.get_response uri
end