Sha256: f01fccef2587dc3ae9374f9aeabd7e546387e34d94418662423ad5431ca35276

Contents?: true

Size: 254 Bytes

Versions: 9

Compression:

Stored size: 254 Bytes

Contents

module Enlight
  module Responses
    module UserAttributable
      attr_accessor :user

      def user=(value)
        if value
          @user = Enlight::Models::User.new(value)
        else
          @user = nil
        end
      end
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
enlight-0.2.4 lib/enlight/responses/user_attributable.rb
enlight-0.2.3 lib/enlight/responses/user_attributable.rb
enlight-0.2.2 lib/enlight/responses/user_attributable.rb
enlight-0.2.1 lib/enlight/responses/user_attributable.rb
enlight-0.2.0 lib/enlight/responses/user_attributable.rb
enlight-0.1.4 lib/enlight/responses/user_attributable.rb
enlight-0.1.3 lib/enlight/responses/user_attributable.rb
enlight-0.1.2 lib/enlight/responses/user_attributable.rb
enlight-0.1.0 lib/enlight/responses/user_attributable.rb