lib/octobat/octobat_object.rb in octobat-2.0.25 vs lib/octobat/octobat_object.rb in octobat-2.0.26
- old
+ new
@@ -22,11 +22,13 @@
@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')
-
+ @headers[:octobat_account] = @retrieve_options.delete(:octobat_account) if @retrieve_options.has_key?(:octobat_account)
+
@values = {}
# This really belongs in APIResource, but not putting it there allows us
# to have a unified inspect method
@unsaved_values = Set.new
@transient_values = Set.new