Class: FroyoApi::Client

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

Direct Known Subclasses

Name, Password, Photo

Instance Method Summary collapse

Instance Method Details

#request(path) ⇒ Object



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

def request(path)
  options = params(path)
  RestClient::Request.execute(options) do |response, request|
    JSON.parse(response.body)
  end
end