Module: Tuiter::AccountMethods

Included in:
Client
Defined in:
lib/tuiter/methods/account.rb

Instance Method Summary collapse

Instance Method Details

#account_rate_limit_statusObject



24
25
26
27
28
29
30
# File 'lib/tuiter/methods/account.rb', line 24

def 
  if res = @request_handler.get("/account/rate_limit_status.json").body
    return Tuiter::RateLimit.new(JSON.parse(res))
  else
    return nil
  end
end

#account_verify_credentials?Boolean

Returns:

  • (Boolean)


16
17
18
19
20
21
22
# File 'lib/tuiter/methods/account.rb', line 16

def 
  if res = @request_handler.get("/account/verify_credentials.json").body
    return Tuiter::User.new(JSON.parse(res))
  else
    return nil
  end
end