Sha256: 5f01d9a8169bc0acbd6c001b6ce83bdc71cc785ab645bb021e8ef1bd8883c44f

Contents?: true

Size: 326 Bytes

Versions: 10

Compression:

Stored size: 326 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

10 entries across 10 versions & 1 rubygems

Version Path
biro-0.6.10 lib/biro/gateways/ph3a/builders/login_builder.rb
biro-0.6.9 lib/biro/gateways/ph3a/builders/login_builder.rb
biro-0.6.8 lib/biro/gateways/ph3a/builders/login_builder.rb
biro-0.6.7 lib/biro/gateways/ph3a/builders/login_builder.rb
biro-0.6.6 lib/biro/gateways/ph3a/builders/login_builder.rb
biro-0.6.5 lib/biro/gateways/ph3a/builders/login_builder.rb
biro-0.6.4 lib/biro/gateways/ph3a/builders/login_builder.rb
biro-0.6.3 lib/biro/gateways/ph3a/builders/login_builder.rb
biro-0.6.2 lib/biro/gateways/ph3a/builders/login_builder.rb
biro-0.6.1 lib/biro/gateways/ph3a/builders/login_builder.rb