Sha256: 9d4bfc6f3ec3b36a6e7d2b2a76a51498f4cb29522eebed951cc8ad78e4fb0777

Contents?: true

Size: 360 Bytes

Versions: 5

Compression:

Stored size: 360 Bytes

Contents

module Auth
  module Lh
    class SessionResponse
      attr_accessor :user, :success, :reason, :login_url

      def initialize(attributes={})
        attributes.each do |k,v|
          if k.to_s == 'user'
            self.user = User.new(v) if v.present?
          else
            self.send("#{k}=", v)
          end
        end
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
auth-lh-0.0.7 lib/auth/lh/session_response.rb
auth-lh-0.0.6 lib/auth/lh/session_response.rb
auth-lh-0.0.5 lib/auth/lh/session_response.rb
auth-lh-0.0.4 lib/auth/lh/session_response.rb
auth-lh-0.0.3 lib/auth/lh/session_response.rb