iron-io / iron_core_ruby

BSD 2-Clause "Simplified" License
7 stars 6 forks source link

Add PUT method to client. #1

Closed treeder closed 12 years ago

treeder commented 12 years ago

    def put(method, params={})
      request_hash = {}
      request_hash[:headers] = common_request_hash
      request_hash[:body] = params.to_json

      IronCore::Logger.debug 'IronCore', "PUT #{url + method} with params='#{request_hash.to_s}'"

      @rest.put(url + method, request_hash)
    end
iced commented 12 years ago

outdated