class Purest::Users
Constants
- GET_PARAMS
Public Instance Methods
create(options = nil)
click to toggle source
Calls superclass method
Purest::APIMethods#create
# File lib/purest/users.rb, line 20 def create(options = nil) path = "admin/#{options.delete(:name)}/apitoken" super(options, path) end
delete(options = nil)
click to toggle source
Calls superclass method
Purest::APIMethods#delete
# File lib/purest/users.rb, line 29 def delete(options = nil) path = "admin/#{options.delete(:name)}/apitoken" super(options, path) end
get(options = nil)
click to toggle source
Calls superclass method
Purest::APIMethods#get
# File lib/purest/users.rb, line 9 def get(options = nil) if !options.nil? && options[:name] && options[:api_token] path = "admin/#{options[:name]}/apitoken" options.delete_if { |k| k == :name || k == :api_token } else path = 'admin' end super(options, path, GET_PARAMS) end
update(options = nil)
click to toggle source
Calls superclass method
Purest::APIMethods#update
# File lib/purest/users.rb, line 25 def update(options = nil) super(options, 'admin') end