Module: RestGraph::DefaultAttributes

Extended by:
DefaultAttributes
Included in:
RestGraph, DefaultAttributes
Defined in:
lib/rest-graph/core.rb,
lib/rest-graph/rails_util.rb

Overview

setup defaults

Instance Method Summary collapse

Instance Method Details

#default_acceptObject



103
# File 'lib/rest-graph/core.rb', line 103

def default_accept      ; 'text/javascript'            ; end

#default_access_tokenObject



97
# File 'lib/rest-graph/core.rb', line 97

def default_access_token; nil                          ; end

#default_app_idObject



105
# File 'lib/rest-graph/core.rb', line 105

def default_app_id      ; nil                          ; end

#default_auto_authorizeObject



29
# File 'lib/rest-graph/rails_util.rb', line 29

def default_auto_authorize        ; false; end

#default_auto_authorize_optionsObject



30
# File 'lib/rest-graph/rails_util.rb', line 30

def default_auto_authorize_options; {}   ; end

#default_auto_authorize_scopeObject



31
# File 'lib/rest-graph/rails_util.rb', line 31

def default_auto_authorize_scope  ; ''   ; end

#default_auto_decodeObject



98
# File 'lib/rest-graph/core.rb', line 98

def default_auto_decode ; true                         ; end

#default_cacheObject



108
# File 'lib/rest-graph/core.rb', line 108

def default_cache       ; nil                          ; end

#default_canvasObject



27
# File 'lib/rest-graph/rails_util.rb', line 27

def default_canvas                ; ''   ; end

#default_check_handlerObject



36
# File 'lib/rest-graph/rails_util.rb', line 36

def default_check_handler         ;   nil; end

#default_dataObject



107
# File 'lib/rest-graph/core.rb', line 107

def default_data        ; {}                           ; end

#default_ensure_authorizedObject



32
# File 'lib/rest-graph/rails_util.rb', line 32

def default_ensure_authorized     ; false; end

#default_error_handlerObject



112
113
114
# File 'lib/rest-graph/core.rb', line 112

def default_error_handler
  lambda{ |error, url| raise ::RestGraph::Error.parse(error, url) }
end

#default_expires_inObject



109
# File 'lib/rest-graph/core.rb', line 109

def default_expires_in  ; 600                          ; end

#default_graph_serverObject



101
# File 'lib/rest-graph/core.rb', line 101

def default_graph_server; 'https://graph.facebook.com/'; end

#default_iframeObject



28
# File 'lib/rest-graph/rails_util.rb', line 28

def default_iframe                ; false; end

#default_langObject



104
# File 'lib/rest-graph/core.rb', line 104

def default_lang        ; 'en-us'                      ; end

#default_log_handlerObject



111
# File 'lib/rest-graph/core.rb', line 111

def default_log_handler ; nil                          ; end

#default_log_methodObject



110
# File 'lib/rest-graph/core.rb', line 110

def default_log_method  ; nil                          ; end

#default_old_serverObject



102
# File 'lib/rest-graph/core.rb', line 102

def default_old_server  ; 'https://api.facebook.com/'  ; end

#default_secretObject



106
# File 'lib/rest-graph/core.rb', line 106

def default_secret      ; nil                          ; end

#default_strictObject



99
# File 'lib/rest-graph/core.rb', line 99

def default_strict      ; false                        ; end

#default_timeoutObject



100
# File 'lib/rest-graph/core.rb', line 100

def default_timeout     ; 10                           ; end

#default_write_cookiesObject



34
# File 'lib/rest-graph/rails_util.rb', line 34

def default_write_cookies         ; false; end

#default_write_handlerObject



35
# File 'lib/rest-graph/rails_util.rb', line 35

def default_write_handler         ;   nil; end

#default_write_sessionObject



33
# File 'lib/rest-graph/rails_util.rb', line 33

def default_write_session         ; false; end