Class: Biro::Ph3a::LoginBuilder
- Inherits:
-
Object
- Object
- Biro::Ph3a::LoginBuilder
- Defined in:
- lib/biro/gateways/ph3a/builders/login_builder.rb
Instance Method Summary collapse
-
#initialize(response) ⇒ LoginBuilder
constructor
A new instance of LoginBuilder.
- #login_result ⇒ Object
- #token ⇒ Object
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_result ⇒ Object
14 15 16 |
# File 'lib/biro/gateways/ph3a/builders/login_builder.rb', line 14 def login_result @body.dig(:login_response).dig(:login_result) end |
#token ⇒ Object
10 11 12 |
# File 'lib/biro/gateways/ph3a/builders/login_builder.rb', line 10 def token login_result.dig(:token) end |