class Stormpath::Resource::AccountStore
Public Class Methods
new(*args)
click to toggle source
# File lib/stormpath-sdk/resource/account_store.rb 19 def self.new(*args) 20 href = args.first[HREF_PROP_NAME] 21 if href =~ /directories/ 22 Stormpath::Resource::Directory.new(*args) 23 elsif href =~ /group/ 24 Stormpath::Resource::Group.new(*args) 25 elsif href =~ /organizations/ 26 Stormpath::Resource::Organization.new(*args) 27 else 28 raise 'inappropriate type of an account store' 29 end 30 end