Class: RPlatform::Rails::CanvasPathStatusCheck
- Inherits:
-
StatusCheck
- Object
- StatusCheck
- RPlatform::Rails::CanvasPathStatusCheck
- Defined in:
- lib/rplatform_rails/status_manager.rb
Instance Method Summary collapse
-
#initialize(controller) ⇒ CanvasPathStatusCheck
constructor
A new instance of CanvasPathStatusCheck.
- #invalid_message ⇒ Object
- #title ⇒ Object
- #valid_message ⇒ Object
Methods inherited from StatusCheck
Constructor Details
#initialize(controller) ⇒ CanvasPathStatusCheck
Returns a new instance of CanvasPathStatusCheck.
165 166 167 168 169 170 171 172 |
# File 'lib/rplatform_rails/status_manager.rb', line 165 def initialize(controller) @controller = controller @valid = false begin @valid = @controller.facebook_canvas_path.size > 0 rescue end end |
Instance Method Details
#invalid_message ⇒ Object
182 183 184 185 186 187 188 189 |
# File 'lib/rplatform_rails/status_manager.rb', line 182 def begin FACEBOOK[:test] return "you need to define <strong>canvas_path</strong> in facebook.yml" rescue return "you need to define s<strong>facebook_canvas_path</strong> in your controller" end end |
#title ⇒ Object
174 175 176 |
# File 'lib/rplatform_rails/status_manager.rb', line 174 def title "facebook_canvas_path" end |
#valid_message ⇒ Object
178 179 180 |
# File 'lib/rplatform_rails/status_manager.rb', line 178 def @controller.facebook_canvas_path end |