Class: RPlatform::Rails::InCanvasStatusCheck

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) ⇒ InCanvasStatusCheck

Returns a new instance of InCanvasStatusCheck.



125
126
127
128
# File 'lib/rplatform_rails/status_manager.rb', line 125

def initialize(controller)
  @controller = controller
  @valid = true
end

Instance Method Details

#invalid_messageObject



138
139
140
# File 'lib/rplatform_rails/status_manager.rb', line 138

def invalid_message
  "this should never be invalid"
end

#titleObject



130
131
132
# File 'lib/rplatform_rails/status_manager.rb', line 130

def title
  "in_facebook_canvas?"
end

#valid_messageObject



134
135
136
# File 'lib/rplatform_rails/status_manager.rb', line 134

def valid_message
  @controller.in_facebook_canvas? ? "yes" : "no"
end