Sha256: 003aa2ed966b8ed8684a3b73861a9cc217896d2f5b364e47571a43628b8ab6eb

Contents?: true

Size: 308 Bytes

Versions: 13

Compression:

Stored size: 308 Bytes

Contents

module AuthLh
  class SessionResponse
    attr_accessor :user, :success, :reason

    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

13 entries across 13 versions & 1 rubygems

Version Path
auth-lh-0.3.2 lib/auth_lh/session_response.rb
auth-lh-0.3.1 lib/auth_lh/session_response.rb
auth-lh-0.3.0 lib/auth_lh/session_response.rb
auth-lh-0.2.4 lib/auth_lh/session_response.rb
auth-lh-0.2.3 lib/auth_lh/session_response.rb
auth-lh-0.2.2 lib/auth_lh/session_response.rb
auth-lh-0.2.1 lib/auth_lh/session_response.rb
auth-lh-0.2.0 lib/auth_lh/session_response.rb
auth-lh-0.1.1 lib/auth_lh/session_response.rb
auth-lh-0.1.0 lib/auth_lh/session_response.rb
auth-lh-0.0.12 lib/auth_lh/session_response.rb
auth-lh-0.0.11 lib/auth_lh/session_response.rb
auth-lh-0.0.10 lib/auth_lh/session_response.rb