Class: RPlatform::Rails::FacebookParamsStatusCheck
- Inherits:
-
StatusCheck
- Object
- StatusCheck
- RPlatform::Rails::FacebookParamsStatusCheck
- Defined in:
- lib/rplatform_rails/status_manager.rb
Instance Method Summary collapse
-
#initialize(controller) ⇒ FacebookParamsStatusCheck
constructor
A new instance of FacebookParamsStatusCheck.
- #invalid_message ⇒ Object
- #title ⇒ Object
- #valid_message ⇒ Object
Methods inherited from StatusCheck
Constructor Details
#initialize(controller) ⇒ FacebookParamsStatusCheck
Returns a new instance of FacebookParamsStatusCheck.
99 100 101 102 103 104 105 106 107 108 |
# File 'lib/rplatform_rails/status_manager.rb', line 99 def initialize(controller) @controller = controller @valid = false begin if @controller.fbparams.size > 0 @valid = true end rescue end end |
Instance Method Details
#invalid_message ⇒ Object
118 119 120 |
# File 'lib/rplatform_rails/status_manager.rb', line 118 def "fbparams is not populated since we weren't able to validate the signature (possibly due to a bad API key or secret)" end |
#title ⇒ Object
110 111 112 |
# File 'lib/rplatform_rails/status_manager.rb', line 110 def title "fbparams" end |
#valid_message ⇒ Object
114 115 116 |
# File 'lib/rplatform_rails/status_manager.rb', line 114 def @controller.fbparams end |