Class: FacebookDialog::Validators::Display

Inherits:
Object
  • Object
show all
Defined in:
lib/facebook_dialog/validators/display.rb

Instance Method Summary collapse

Constructor Details

#initialize(options = {}) ⇒ Display

Returns a new instance of Display.



4
5
6
7
# File 'lib/facebook_dialog/validators/display.rb', line 4

def initialize(options = {})
  @options = options
  @value = options[:display]
end

Instance Method Details

#validateObject



9
10
11
12
# File 'lib/facebook_dialog/validators/display.rb', line 9

def validate
  validate_against_whitelist
  validate_access_key
end