Class: RPlatform::Rails::InFrameStatusCheck

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

Returns a new instance of InFrameStatusCheck.



145
146
147
148
# File 'lib/rplatform_rails/status_manager.rb', line 145

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

Instance Method Details

#invalid_messageObject



158
159
160
# File 'lib/rplatform_rails/status_manager.rb', line 158

def invalid_message
  "this should never be invalid"
end

#titleObject



150
151
152
# File 'lib/rplatform_rails/status_manager.rb', line 150

def title
  "in_facebook_frame?"
end

#valid_messageObject



154
155
156
# File 'lib/rplatform_rails/status_manager.rb', line 154

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