Class: RPlatform::Rails::FacebookParamsStatusCheck

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



118
119
120
# File 'lib/rplatform_rails/status_manager.rb', line 118

def invalid_message
  "fbparams is not populated since we weren't able to validate the signature (possibly due to a bad API key or secret)"
end

#titleObject



110
111
112
# File 'lib/rplatform_rails/status_manager.rb', line 110

def title
  "fbparams"
end

#valid_messageObject



114
115
116
# File 'lib/rplatform_rails/status_manager.rb', line 114

def valid_message
  @controller.fbparams
end