Class: RPlatform::Rails::SessionStatusCheck
- Inherits:
-
StatusCheck
- Object
- StatusCheck
- RPlatform::Rails::SessionStatusCheck
- Defined in:
- lib/rplatform_rails/status_manager.rb
Instance Method Summary collapse
-
#initialize(controller) ⇒ SessionStatusCheck
constructor
A new instance of SessionStatusCheck.
- #invalid_message ⇒ Object
- #title ⇒ Object
- #valid_message ⇒ Object
Methods inherited from StatusCheck
Constructor Details
#initialize(controller) ⇒ SessionStatusCheck
Returns a new instance of SessionStatusCheck.
73 74 75 76 77 78 79 80 81 82 |
# File 'lib/rplatform_rails/status_manager.rb', line 73 def initialize(controller) @controller = controller @valid = false begin if controller.fbsession.ready? @valid = true end rescue end end |
Instance Method Details
#invalid_message ⇒ Object
92 93 94 |
# File 'lib/rplatform_rails/status_manager.rb', line 92 def "session is invalid, you will not be able to make API calls (possibly due to a bad API key or secret)" end |
#title ⇒ Object
84 85 86 |
# File 'lib/rplatform_rails/status_manager.rb', line 84 def title "fbsession" end |
#valid_message ⇒ Object
88 89 90 |
# File 'lib/rplatform_rails/status_manager.rb', line 88 def "session is ready to make API calls" end |