Sha256: f4c97a243646fa83a37e75a07a7fd4a267784e86f66f45ea981ecabbf273a947

Contents?: true

Size: 557 Bytes

Versions: 4

Compression:

Stored size: 557 Bytes

Contents

require_relative 'endpoint'

module Manifestly
  module Entity
    class User < Endpoint
      attr_accessor :id
      attr_accessor :avatar_url
      attr_accessor :email
      attr_accessor :name
      attr_accessor :simple_display_name
      attr_accessor :username
      attr_accessor :membership_id
      attr_accessor :role

      invalid_method(:create)
      invalid_class_method(:get)
      invalid_method(:update)
      invalid_method(:save)
      invalid_method(:delete)

      def self.endpoint_target
        :users
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
manifestly-client-1.0.4 lib/manifestly/entity/user.rb
manifestly-client-1.0.3 lib/manifestly/entity/user.rb
manifestly-client-1.0.1 lib/manifestly/entity/user.rb
manifestly-client-1.0.0 lib/manifestly/entity/user.rb