Sha256: 734c8051e3afa95761255bc717f46436c8a8f67d7c8d1bb1acefb0cf3cac6b8b

Contents?: true

Size: 272 Bytes

Versions: 2

Compression:

Stored size: 272 Bytes

Contents

module Workarea
  module ShipStation
    class Response
      def initialize(response)
        @response = response
      end

      def success?
        @response.success?
      end

      def body
        @body ||= JSON.parse(@response.body)
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
workarea-ship_station-1.0.1 lib/workarea/ship_station/response.rb
workarea-ship_station-1.0.0 lib/workarea/ship_station/response.rb