Class: Fresh::Auth::Configuration::Url

Inherits:
Object
  • Object
show all
Defined in:
lib/fresh/auth/configuration.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#subdomainObject


12
13
14
15
# File 'lib/fresh/auth/configuration.rb', line 12

def subdomain
  raise "Fresh::Auth.configuration.url.subdomain cannot be blank" if @subdomain.blank?
  @subdomain
end

Instance Method Details

#accessObject


25
26
27
# File 'lib/fresh/auth/configuration.rb', line 25

def access
  base + "oauth/oauth_access.php"
end

#apiObject


29
30
31
# File 'lib/fresh/auth/configuration.rb', line 29

def api
  base + "api/2.1/xml-in"
end

#authObject


21
22
23
# File 'lib/fresh/auth/configuration.rb', line 21

def auth
  base + "oauth/oauth_authorize.php"
end

#requestObject


17
18
19
# File 'lib/fresh/auth/configuration.rb', line 17

def request
  base + "oauth/oauth_request.php"
end