Module: Hyperb::Misc

Included in:
API
Defined in:
lib/hyperb/misc.rb

Overview

simple wrapper for the version endpoint

Instance Method Summary collapse

Instance Method Details

#infoObject

returns system-wide information about user account



13
14
15
# File 'lib/hyperb/misc.rb', line 13

def info
  JSON.parse(Hyperb::Request.new(self, '/info', {}, 'get').perform)
end

#versionObject

returns current version of hyper.sh api



8
9
10
# File 'lib/hyperb/misc.rb', line 8

def version
  JSON.parse(Hyperb::Request.new(self, '/version', {}, 'get').perform)
end