module Loklak
Constants
- VERSION
Public Class Methods
hello()
click to toggle source
# File lib/loklak.rb, line 8 def self.hello() method_path = 'hello.json' response = Net::HTTP.get_response(URI(BASE_API_URL + method_path)) if response.code == '200' JSON.parse(response.body) else {} end end
status()
click to toggle source
# File lib/loklak.rb, line 18 def self.status() method_path = 'status.json' response = Net::HTTP.get_response(URI(BASE_API_URL + method_path)) if response.code == '200' JSON.parse(response.body) else {} end end