Class: Picasa::Connection
- Inherits:
-
Object
- Object
- Picasa::Connection
- Defined in:
- lib/picasa/connection.rb
Instance Method Summary collapse
- #delete(params = {}) ⇒ Object
- #get(params = {}) ⇒ Object
- #patch(params = {}) ⇒ Object
- #post(params = {}) ⇒ Object
Instance Method Details
#delete(params = {}) ⇒ Object
35 36 37 |
# File 'lib/picasa/connection.rb', line 35 def delete(params = {}) exec_request(params) { |uri, | HTTP.delete(uri, ) } end |
#get(params = {}) ⇒ Object
8 9 10 |
# File 'lib/picasa/connection.rb', line 8 def get(params = {}) exec_request(params) { |uri, | HTTP.get(uri, ) } end |
#patch(params = {}) ⇒ Object
24 25 26 27 28 |
# File 'lib/picasa/connection.rb', line 24 def patch(params = {}) params[:headers] ||= {} params[:headers]["Content-Type"] ||= "application/xml" exec_request(params) { |uri, | HTTP.patch(uri,) } end |
#post(params = {}) ⇒ Object
18 19 20 21 22 |
# File 'lib/picasa/connection.rb', line 18 def post(params = {}) params[:headers] ||= {} params[:headers]["Content-Type"] ||= "application/atom+xml" exec_request(params) { |uri, | HTTP.post(uri, ) } end |