Sha256: 713a6e716e82992c26e82080dd5077a427a62529ceb0b3a978531b3cce8b3f50

Contents?: true

Size: 330 Bytes

Versions: 3

Compression:

Stored size: 330 Bytes

Contents

module RubyBranch
  module API
    class Response

      extend Forwardable

      attr_accessor :response
      def_delegators :@response, :success?, :status, :body

      def initialize(response)
        @response = response
      end

      def json
        JSON.parse(body, symbolize_names: true)
      end

    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
ruby_branch-1.0.0 lib/ruby_branch/api/response.rb
ruby_branch-0.2.0 lib/ruby_branch/api/response.rb
ruby_branch-0.1.0 lib/ruby_branch/api/response.rb