Class: RPlatform::Rails::SessionStatusCheck

Inherits:
StatusCheck
  • Object
show all
Defined in:
lib/rplatform_rails/status_manager.rb

Instance Method Summary collapse

Methods inherited from StatusCheck

#message, #valid?

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_messageObject



92
93
94
# File 'lib/rplatform_rails/status_manager.rb', line 92

def invalid_message
  "session is invalid, you will not be able to make API calls (possibly due to a bad API key or secret)"
end

#titleObject



84
85
86
# File 'lib/rplatform_rails/status_manager.rb', line 84

def title
  "fbsession"
end

#valid_messageObject



88
89
90
# File 'lib/rplatform_rails/status_manager.rb', line 88

def valid_message
  "session is ready to make API calls"
end