Class: TelegramGatewayAdapter::Client::Result
- Inherits:
-
Struct
- Object
- Struct
- TelegramGatewayAdapter::Client::Result
- Defined in:
- app/services/telegram_gateway_adapter/client.rb
Overview
Returns a Result struct so callers can branch on ‘ok?` without raising in the common “phone not on Telegram” path.
‘verification_status` is only populated by #check_verification_status —for other endpoints it stays nil (keyword_init defaults missing kwargs).
Instance Attribute Summary collapse
-
#error ⇒ Object
Returns the value of attribute error.
-
#ok? ⇒ Object
Returns the value of attribute ok?.
-
#raw ⇒ Object
Returns the value of attribute raw.
-
#request_id ⇒ Object
Returns the value of attribute request_id.
-
#verification_status ⇒ Object
Returns the value of attribute verification_status.
Instance Attribute Details
#error ⇒ Object
Returns the value of attribute error
25 26 27 |
# File 'app/services/telegram_gateway_adapter/client.rb', line 25 def error @error end |
#ok? ⇒ Object
Returns the value of attribute ok?
25 26 27 |
# File 'app/services/telegram_gateway_adapter/client.rb', line 25
def ok?
@ok?
end
|
#raw ⇒ Object
Returns the value of attribute raw
25 26 27 |
# File 'app/services/telegram_gateway_adapter/client.rb', line 25 def raw @raw end |
#request_id ⇒ Object
Returns the value of attribute request_id
25 26 27 |
# File 'app/services/telegram_gateway_adapter/client.rb', line 25 def request_id @request_id end |
#verification_status ⇒ Object
Returns the value of attribute verification_status
25 26 27 |
# File 'app/services/telegram_gateway_adapter/client.rb', line 25 def verification_status @verification_status end |