Sha256: a543ed28ed7401e989a9af895619bc7655ca847c72359536dd7837d59e8066aa

Contents?: true

Size: 327 Bytes

Versions: 2

Compression:

Stored size: 327 Bytes

Contents

require 'active_support/core_ext/array'

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

      def token
        login_result.dig(:token)
      end

      def login_result
        @body.dig(:login_response).dig(:login_result)
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

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