Sha256: 3fe30c76a22a8ff64f024ee20ff216d900e3302a9eabb35b938f83887f152e4f

Contents?: true

Size: 339 Bytes

Versions: 2

Compression:

Stored size: 339 Bytes

Contents

module Board
  class Client::Users < Client::API

    def create(attributes)
      post("/users", attributes)
    end

    def find(id)
      if id.is_a?(Hash)
        get("/users", id)
      else
        get("/users/#{id}")
      end
    end

    def unsubscribe(email)
      get("/users/unsubscribe", :email => email)
    end

  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
board-client-0.99.1 lib/board/client/users.rb
board-client-0.99.0 lib/board/client/users.rb