Sha256: 24bffd0568c27eba24de5c2cd088d0d90c06b2141976f0859cf62542067d1264

Contents?: true

Size: 266 Bytes

Versions: 2

Compression:

Stored size: 266 Bytes

Contents

module Workarea
  module Yotpo
    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-yotpo-1.0.1 lib/workarea/yotpo/response.rb
workarea-yotpo-1.0.0 lib/workarea/yotpo/response.rb