Class: Biro::Ph3a::LoginBuilder

Inherits:
Object
  • Object
show all
Defined in:
lib/biro/gateways/ph3a/builders/login_builder.rb

Instance Method Summary collapse

Constructor Details

#initialize(response) ⇒ LoginBuilder

Returns a new instance of LoginBuilder.



6
7
8
# File 'lib/biro/gateways/ph3a/builders/login_builder.rb', line 6

def initialize(response)
  @body = response.body
end

Instance Method Details

#login_resultObject



14
15
16
# File 'lib/biro/gateways/ph3a/builders/login_builder.rb', line 14

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

#tokenObject



10
11
12
# File 'lib/biro/gateways/ph3a/builders/login_builder.rb', line 10

def token
  .dig(:token)
end