Class: Telegram::Auth::Verification
- Inherits:
-
Object
- Object
- Telegram::Auth::Verification
- Defined in:
- lib/telegram/auth/verification.rb
Instance Attribute Summary collapse
-
#error ⇒ Object
readonly
Returns the value of attribute error.
Instance Method Summary collapse
-
#initialize(hash, fields) ⇒ Verification
constructor
A new instance of Verification.
- #process ⇒ Object
Constructor Details
#initialize(hash, fields) ⇒ Verification
Returns a new instance of Verification.
7 8 9 10 |
# File 'lib/telegram/auth/verification.rb', line 7 def initialize(hash, fields) @fields = fields @hash = hash end |
Instance Attribute Details
#error ⇒ Object (readonly)
Returns the value of attribute error.
5 6 7 |
# File 'lib/telegram/auth/verification.rb', line 5 def error @error end |
Instance Method Details
#process ⇒ Object
12 13 14 |
# File 'lib/telegram/auth/verification.rb', line 12 def process Configuration.instance.validate! && check_sha && check_expiry end |