Sha256: 54182d6d47d143b0d19f4a86708d39d8eaeece693b18a53b1e9c5e2edb2bee37

Contents?: true

Size: 533 Bytes

Versions: 20

Compression:

Stored size: 533 Bytes

Contents

module Homeflow
  module API
   class User < Resource

    is_resource :users

    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

    def self.create(params)
      Request.run_for(Homeflow::API::Post.new("/#{resource_uri}/", {}, params))
    end

    def self.update(id, params)
      Request.run_for(Homeflow::API::Put.new("/#{resource_uri}/#{id}", {}, params))
    end

   end
 end
end

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
homeflow_api-1.0.3 lib/homeflow/api/user.rb
homeflow_api-1.0.2 lib/homeflow/api/user.rb
homeflow_api-1.0.1 lib/homeflow/api/user.rb
homeflow_api-1.0.0 lib/homeflow/api/user.rb
homeflow_api-0.17.15 lib/homeflow/api/user.rb
homeflow_api-0.17.14 lib/homeflow/api/user.rb
homeflow_api-0.17.13 lib/homeflow/api/user.rb
homeflow_api-0.17.12 lib/homeflow/api/user.rb
homeflow_api-0.17.11 lib/homeflow/api/user.rb
homeflow_api-0.17.9 lib/homeflow/api/user.rb
homeflow_api-0.17.8 lib/homeflow/api/user.rb
homeflow_api-0.17.6 lib/homeflow/api/user.rb
homeflow_api-0.17.5 lib/homeflow/api/user.rb
homeflow_api-0.17.4 lib/homeflow/api/user.rb
homeflow_api-0.17.3 lib/homeflow/api/user.rb
homeflow_api-0.17.1 lib/homeflow/api/user.rb
homeflow_api-0.17.0 lib/homeflow/api/user.rb
homeflow_api-0.16.0 lib/homeflow/api/user.rb
homeflow_api-0.14.4 lib/homeflow/api/user.rb
homeflow_api-0.14.3 lib/homeflow/api/user.rb