lib/octobat/octobat_object.rb in octobat-2.0.3 vs lib/octobat/octobat_object.rb in octobat-2.0.4

- old
+ new

@@ -17,13 +17,15 @@ @retrieve_options.delete(:id) id = id[:id] else @retrieve_options = {} end - + + @headers = {} @api_key = opts[:api_key] @retrieve_options.merge!(opts.clone).delete(:api_key) + @headers['Octobat-Version'] = @retrieve_options.delete('Octobat-Version') if @retrieve_options.has_key?('Octobat-Version') @values = {} # This really belongs in APIResource, but not putting it there allows us # to have a unified inspect method @unsaved_values = Set.new