Class: Telegram::Auth::Verification

Inherits:
Object
  • Object
show all
Defined in:
lib/telegram/auth/verification.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#errorObject (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

#processObject



12
13
14
# File 'lib/telegram/auth/verification.rb', line 12

def process
  Configuration.instance.validate! && check_sha && check_expiry
end