Sha256: 91b8c1c10511cd1b509736e20e04cb70e6a3f8896fc9c1accce61d4269a9b109
Contents?: true
Size: 521 Bytes
Versions: 1
Compression:
Stored size: 521 Bytes
Contents
module Applicaster class User attr_accessor :user_json def initialize(user_json) @user_json = user_json.symbolize_keys end def id user_json[:id] end def name user_json[:name] end def email user_json[:email] end def global_roles user_json[:global_roles] end def permissions user_json[:permissions] end def admin puts user_json.inspect user_json[:admin] end def admin? !!admin end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
omniauth-applicaster-1.0.0 | lib/applicaster/user.rb |