Sha256: 700e63c67426f672cd61857f59ff279408b76f4030a5b02260bbcb1d0beacbc8

Contents?: true

Size: 312 Bytes

Versions: 2

Compression:

Stored size: 312 Bytes

Contents

module ActiveResourceResponse
  module Response
    def self.included(base)
      base.class_eval  do
        def to_hash
          @headers
        end
        # to avoid method name conflict with Response:HttpResponse:headers
        def [](key)
          @headers[key]
        end
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
activeresource-response-0.4.0 lib/active_resource_response/response.rb
activeresource-response-0.3.0 lib/active_resource_response/response.rb