Sha256: 87d43a8242b0b6835c3652e9043f5e717ab23bfd3b71d1f34c2bb56bd61a9c28
Contents?: true
Size: 745 Bytes
Versions: 2
Compression:
Stored size: 745 Bytes
Contents
require 'acfs/response/formats' require 'acfs/response/status' require 'active_support/core_ext/module/delegation' module Acfs # This represents a response. In addition to an standard HTTP # it has a field `data` for storing the encoded body. # class Response attr_accessor :data attr_reader :headers, :body include Response::Formats include Response::Status #delegate :status, :status_message, :success?, :modified?, :timed_out?, # :response_body, :response_headers, :response_code, :headers, # to: :response def initialize(request, data = {}) @request = request @status = data[:status] @headers = data[:headers] @body = data[:body] end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
acfs-0.12.0 | lib/acfs/response.rb |
acfs-0.11.0 | lib/acfs/response.rb |