Sha256: 935e8217dacdf9b5438fe7c2fb9c4b9748f0ef22064c045a67fb0d346f297245

Contents?: true

Size: 345 Bytes

Versions: 1

Compression:

Stored size: 345 Bytes

Contents

require 'active_support/core_ext/array'

module Biro
  module Ph3a
    class CurrentBuilder
      def initialize(response)
        @body = response.body
      end

      def token
        current_result.dig(:token)
      end

      def current_result
        @body.dig(:get_current_response).dig(:get_current_result)
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
biro-0.7.1 lib/biro/gateways/ph3a/builders/current_builder.rb