Sha256: 3532f9d95e4904232a3d8d590162d5a225dc8c05f9077c2ee50d8a84d8fab962

Contents?: true

Size: 321 Bytes

Versions: 4

Compression:

Stored size: 321 Bytes

Contents

require 'active_support/all'

module Enlight
  module Responses
    class Response
      attr_accessor :status
      attr_accessor :error

      def initialize(attributes={})
        attributes.deep_transform_keys! { |k| k.to_s.underscore }
        attributes.each {|k,v| send("#{k}=", v) }
      end
    end
  end
end


Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
enlight-0.1.4 lib/enlight/responses/response.rb
enlight-0.1.3 lib/enlight/responses/response.rb
enlight-0.1.2 lib/enlight/responses/response.rb
enlight-0.1.0 lib/enlight/responses/response.rb