Class: Homeflow::API::User
Class Method Summary
collapse
Methods inherited from Resource
delete, is_resource, resource_uri
Methods included from Queryable
included
Class Method Details
.create(params) ⇒ Object
11
12
13
|
# File 'lib/homeflow/api/user.rb', line 11
def self.create(params)
Request.run_for(Homeflow::API::Post.new("/#{resource_uri}/", {}, params))
end
|
.find(id, session_id, agency_id = nil) ⇒ Object
7
8
9
|
# File 'lib/homeflow/api/user.rb', line 7
def self.find(id, session_id, agency_id=nil)
Request.run_for(Homeflow::API::ResourceIdentifier.new("/#{resource_uri}/#{id}", :session_id => session_id, :agency_id => agency_id))
end
|
.update(id, params) ⇒ Object
15
16
17
|
# File 'lib/homeflow/api/user.rb', line 15
def self.update(id, params)
Request.run_for(Homeflow::API::Put.new("/#{resource_uri}/#{id}", {}, params))
end
|