Sha256: e2618853b58caf02023749ca5843ed1724ed88e07a32ad48a00ad091a7ccf029

Contents?: true

Size: 307 Bytes

Versions: 46

Compression:

Stored size: 307 Bytes

Contents

module AuthLh
  class SessionResponse
    attr_accessor :user, :destination_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

Version data entries

46 entries across 46 versions & 1 rubygems

Version Path
auth-lh-1.3 lib/auth_lh/session_response.rb
auth-lh-1.2.1 lib/auth_lh/session_response.rb
auth-lh-1.2 lib/auth_lh/session_response.rb
auth-lh-1.1 lib/auth_lh/session_response.rb
auth-lh-1.0 lib/auth_lh/session_response.rb
auth-lh-0.30.0 lib/auth_lh/session_response.rb
auth-lh-0.29.0 lib/auth_lh/session_response.rb
auth-lh-0.28.0 lib/auth_lh/session_response.rb
auth-lh-0.27.0 lib/auth_lh/session_response.rb
auth-lh-0.26.0 lib/auth_lh/session_response.rb
auth-lh-0.24.0 lib/auth_lh/session_response.rb
auth-lh-0.23.0 lib/auth_lh/session_response.rb
auth-lh-0.22.0 lib/auth_lh/session_response.rb
auth-lh-0.21.1 lib/auth_lh/session_response.rb
auth-lh-0.21.0 lib/auth_lh/session_response.rb
auth-lh-0.19.1 lib/auth_lh/session_response.rb
auth-lh-0.19.0 lib/auth_lh/session_response.rb
auth-lh-0.18.1 lib/auth_lh/session_response.rb
auth-lh-0.18.0 lib/auth_lh/session_response.rb
auth-lh-0.17.0 lib/auth_lh/session_response.rb