Class: QoolifeApi::Hello

Inherits:
Base
  • Object
show all
Defined in:
lib/qoolife-api/hello.rb

Class Method Summary collapse

Methods inherited from Base

authorize, endpoint, token=

Methods included from Pagination

included

Class Method Details

.say_helloObject



3
4
5
6
# File 'lib/qoolife-api/hello.rb', line 3

def self.say_hello
  uri = URI(Base.endpoint + 'hello')
  JSON.parse Net::HTTP.get_response(uri).body
end