lib/access/response.rb in access-2.0.1 vs lib/access/response.rb in access-2.0.2

- old
+ new

@@ -2,10 +2,12 @@ class Response attr_accessor :info, :offers, :stores, :locations, :categories, :suggestions, :oauth_applications, :access_tokens, :oauth_tokens, :oauth_token, :verify, :reports, :members, :filters, :links, :dev_node, :message, :status, :success, :error, :response_status, :content_type, :redemption_method, :details, :oauth_access_token, :api_calls_over_time, :total_api_calls, :time_period, :interval, :report_env def initialize(response) + # puts response response.each { |key, value| instance_variable_set("@#{key}", value) if self.class.instance_methods.include? key.to_sym } + # puts response.message @response_status = response.message @status ||= response.code check_success(response) if @success @info = Access::Info.new(@info) if @info