lib/auth_lh.rb in auth-lh-0.2.4 vs lib/auth_lh.rb in auth-lh-0.3.0
- old
+ new
@@ -55,9 +55,14 @@
def self.change_password_url
"#{@endpoint}/change_password?return_url=#{CGI::escape(@return_url)}"
end
+ def self.whatsmyshop(ip_address=nil)
+ attrs = { ip: ip_address }
+ get_request('/api/whatsmyshop', attrs)['shop_codes']
+ end
+
protected
def self.create_login_attempt
LoginAttempt.new(post_request('/api/login_attempts', {
return_url: @return_url