Sha256: 9aed18fe55aefff76ad2b6cefef278fcd9e519a9b0231f389a6a3f57e3596cb5
Contents?: true
Size: 366 Bytes
Versions: 2
Compression:
Stored size: 366 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 = Auth::User.new(v) if v.present? else self.send("#{k}=", v) end end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
auth-lh-0.0.2 | lib/auth/lh/session_response.rb |
auth-lh-0.0.1 | lib/auth/lh/session_response.rb |