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-0.7.0 lib/auth_lh/session_response.rb
auth-lh-0.6.1 lib/auth_lh/session_response.rb
auth-lh-0.6.0 lib/auth_lh/session_response.rb
auth-lh-0.5.0 lib/auth_lh/session_response.rb
auth-lh-0.4.2 lib/auth_lh/session_response.rb
auth-lh-0.4.1 lib/auth_lh/session_response.rb