Module: Dropbox::WebClient::Paths
- Included in:
- Session
- Defined in:
- lib/dropbox/web_client/paths.rb
Constant Summary collapse
- @@endpoint =
"https://www.dropbox.com"- @@paths =
{ :login => "/login", :post_login => "/ajax_login", :invite => "/share_ajax/existing", :invite_more => "/share_ajax/invite_more", :share_options => "/share_options/:path" }
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(method_sym, *arguments, &block) ⇒ Object (private)
25 26 27 28 29 30 31 |
# File 'lib/dropbox/web_client/paths.rb', line 25 def method_missing(method_sym, *arguments, &block) if (method_sym.to_s =~ /^(.*)_url$/) == 0 and @@paths.keys.include?(path = $1.to_sym) return url_from_path(@@paths[path], *arguments) else super end end |