Sha256: 81bb966b4dc5f7a0440f8bf0ad95f8890d55e993f55172c4742a12092e219375

Contents?: true

Size: 320 Bytes

Versions: 2

Compression:

Stored size: 320 Bytes

Contents

module AuthLh
  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

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
auth-lh-0.0.9 lib/auth_lh/session_response.rb
auth-lh-0.0.8 lib/auth_lh/session_response.rb