class Fresh::Auth::Configuration::Url
Attributes
subdomain[W]
Public Instance Methods
access()
click to toggle source
# File lib/fresh/auth/configuration.rb, line 25 def access base + "oauth/oauth_access.php" end
api()
click to toggle source
# File lib/fresh/auth/configuration.rb, line 29 def api base + "api/2.1/xml-in" end
auth()
click to toggle source
# File lib/fresh/auth/configuration.rb, line 21 def auth base + "oauth/oauth_authorize.php" end
request()
click to toggle source
# File lib/fresh/auth/configuration.rb, line 17 def request base + "oauth/oauth_request.php" end
subdomain()
click to toggle source
# File lib/fresh/auth/configuration.rb, line 12 def subdomain raise "Fresh::Auth.configuration.url.subdomain cannot be blank" if @subdomain.blank? @subdomain end
Private Instance Methods
base()
click to toggle source
# File lib/fresh/auth/configuration.rb, line 33 def base "https://#{@subdomain}.freshbooks.com/" end