Class: TelegramGatewayAdapter::Client::Result

Inherits:
Struct
  • Object
show all
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

Instance Attribute Details

#errorObject

Returns the value of attribute error

Returns:

  • (Object)

    the current value of 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?

Returns:

  • (Object)

    the current value of ok?



25
26
27
# File 'app/services/telegram_gateway_adapter/client.rb', line 25

def ok?
  @ok?
end

#rawObject

Returns the value of attribute raw

Returns:

  • (Object)

    the current value of raw



25
26
27
# File 'app/services/telegram_gateway_adapter/client.rb', line 25

def raw
  @raw
end

#request_idObject

Returns the value of attribute request_id

Returns:

  • (Object)

    the current value of request_id



25
26
27
# File 'app/services/telegram_gateway_adapter/client.rb', line 25

def request_id
  @request_id
end

#verification_statusObject

Returns the value of attribute verification_status

Returns:

  • (Object)

    the current value of verification_status



25
26
27
# File 'app/services/telegram_gateway_adapter/client.rb', line 25

def verification_status
  @verification_status
end