Module: PintrestApi::Authentication
Overview
Pintrest Boards this is used to fetch boards and related pins
Constant Summary collapse
- EMAIL_INPUT_CSS =
'.loginUsername input'- PASSWORD_INPUT_CSS =
'.loginPassword input'- LOGIN_PAGE_BUTTON_CSS =
'.formFooter .formFooterButtons'- PINTREST_LOGIN_URL =
'https://www.pinterest.com/login/'
Instance Attribute Summary collapse
-
#is_logged_in ⇒ Object
Returns the value of attribute is_logged_in.
Instance Method Summary collapse
Instance Attribute Details
#is_logged_in ⇒ Object
Returns the value of attribute is_logged_in.
4 5 6 |
# File 'lib/pintrest_api/authentication.rb', line 4 def is_logged_in @is_logged_in end |
Instance Method Details
#try_or_check_login(authentication) ⇒ Object
11 12 13 14 |
# File 'lib/pintrest_api/authentication.rb', line 11 def try_or_check_login(authentication) login authentication if !@is_logged_in && authentication @is_logged_in = true end |