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
- #default_accept ⇒ Object
- #default_access_token ⇒ Object
- #default_app_id ⇒ Object
- #default_auto_authorize ⇒ Object
- #default_auto_authorize_options ⇒ Object
- #default_auto_authorize_scope ⇒ Object
- #default_auto_decode ⇒ Object
- #default_cache ⇒ Object
- #default_canvas ⇒ Object
- #default_check_handler ⇒ Object
- #default_data ⇒ Object
- #default_ensure_authorized ⇒ Object
- #default_error_handler ⇒ Object
- #default_expires_in ⇒ Object
- #default_graph_server ⇒ Object
- #default_iframe ⇒ Object
- #default_lang ⇒ Object
- #default_log_handler ⇒ Object
- #default_log_method ⇒ Object
- #default_old_server ⇒ Object
- #default_secret ⇒ Object
- #default_strict ⇒ Object
- #default_timeout ⇒ Object
- #default_write_cookies ⇒ Object
- #default_write_handler ⇒ Object
- #default_write_session ⇒ Object
Instance Method Details
#default_accept ⇒ Object
103 |
# File 'lib/rest-graph/core.rb', line 103 def default_accept ; 'text/javascript' ; end |
#default_access_token ⇒ Object
97 |
# File 'lib/rest-graph/core.rb', line 97 def default_access_token; nil ; end |
#default_app_id ⇒ Object
105 |
# File 'lib/rest-graph/core.rb', line 105 def default_app_id ; nil ; end |
#default_auto_authorize ⇒ Object
29 |
# File 'lib/rest-graph/rails_util.rb', line 29 def ; false; end |
#default_auto_authorize_options ⇒ Object
30 |
# File 'lib/rest-graph/rails_util.rb', line 30 def ; {} ; end |
#default_auto_authorize_scope ⇒ Object
31 |
# File 'lib/rest-graph/rails_util.rb', line 31 def ; '' ; end |
#default_auto_decode ⇒ Object
98 |
# File 'lib/rest-graph/core.rb', line 98 def default_auto_decode ; true ; end |
#default_cache ⇒ Object
108 |
# File 'lib/rest-graph/core.rb', line 108 def default_cache ; nil ; end |
#default_canvas ⇒ Object
27 |
# File 'lib/rest-graph/rails_util.rb', line 27 def default_canvas ; '' ; end |
#default_check_handler ⇒ Object
36 |
# File 'lib/rest-graph/rails_util.rb', line 36 def default_check_handler ; nil; end |
#default_data ⇒ Object
107 |
# File 'lib/rest-graph/core.rb', line 107 def default_data ; {} ; end |
#default_ensure_authorized ⇒ Object
32 |
# File 'lib/rest-graph/rails_util.rb', line 32 def ; false; end |
#default_error_handler ⇒ Object
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_in ⇒ Object
109 |
# File 'lib/rest-graph/core.rb', line 109 def default_expires_in ; 600 ; end |
#default_graph_server ⇒ Object
101 |
# File 'lib/rest-graph/core.rb', line 101 def default_graph_server; 'https://graph.facebook.com/'; end |
#default_iframe ⇒ Object
28 |
# File 'lib/rest-graph/rails_util.rb', line 28 def default_iframe ; false; end |
#default_lang ⇒ Object
104 |
# File 'lib/rest-graph/core.rb', line 104 def default_lang ; 'en-us' ; end |
#default_log_handler ⇒ Object
111 |
# File 'lib/rest-graph/core.rb', line 111 def default_log_handler ; nil ; end |
#default_log_method ⇒ Object
110 |
# File 'lib/rest-graph/core.rb', line 110 def default_log_method ; nil ; end |
#default_old_server ⇒ Object
102 |
# File 'lib/rest-graph/core.rb', line 102 def default_old_server ; 'https://api.facebook.com/' ; end |
#default_secret ⇒ Object
106 |
# File 'lib/rest-graph/core.rb', line 106 def default_secret ; nil ; end |
#default_strict ⇒ Object
99 |
# File 'lib/rest-graph/core.rb', line 99 def default_strict ; false ; end |
#default_timeout ⇒ Object
100 |
# File 'lib/rest-graph/core.rb', line 100 def default_timeout ; 10 ; end |
#default_write_cookies ⇒ Object
34 |
# File 'lib/rest-graph/rails_util.rb', line 34 def ; false; end |
#default_write_handler ⇒ Object
35 |
# File 'lib/rest-graph/rails_util.rb', line 35 def default_write_handler ; nil; end |
#default_write_session ⇒ Object
33 |
# File 'lib/rest-graph/rails_util.rb', line 33 def default_write_session ; false; end |