Class: RubyRedtail::Sso
- Inherits:
-
Object
- Object
- RubyRedtail::Sso
- Defined in:
- lib/ruby-redtail/sso.rb
Instance Method Summary collapse
-
#initialize(sso = {}) ⇒ Sso
constructor
A new instance of Sso.
Constructor Details
#initialize(sso = {}) ⇒ Sso
Returns a new instance of Sso.
3 4 5 6 7 8 9 10 |
# File 'lib/ruby-redtail/sso.rb', line 3 def initialize(sso = {}) raise ArgumentError if sso.class != Hash sso.each do |key, value| key = key.underscore self.class.send :attr_accessor, key instance_variable_set "@#{key}", value end end |