lib/box/api.rb in box-api-0.1.6 vs lib/box/api.rb in box-api-0.1.7

- old
+ new

@@ -4,9 +4,11 @@ module Box class Api include HTTMultiParty # a slight modification to HTTParty, adding multi-part upload support + attr_accessor :base_url, :upload_url + def initialize(key, url = 'https://box.net', upload_url = 'https://upload.box.net', version = '1.0') @default_params = { :api_key => key } # add the api_key to every query @base_url = "#{ url }/api/#{ version }" # set the base of the request url @upload_url = "#{ upload_url }/api/#{ version }" # uploads use a different url than everything else