Module: Rubyhorn::RestClient::Info

Included in:
MatterhornClient
Defined in:
lib/rubyhorn/rest_client/info.rb

Instance Method Summary collapse

Instance Method Details

#componentsObject

Return ruby object corresponding to JSON returned from info/components.json



11
12
13
# File 'lib/rubyhorn/rest_client/info.rb', line 11

def components
  return JSON.parse(get("info/components.json"))
end

#meObject

Return ruby object corresponding to JSON returned from info/me.json



6
7
8
# File 'lib/rubyhorn/rest_client/info.rb', line 6

def me
  return JSON.parse(get("info/me.json"))
end