Class: RubyRedtail::Sso

Inherits:
Object
  • Object
show all
Defined in:
lib/ruby-redtail/sso.rb

Instance Method Summary collapse

Constructor Details

#initialize(sso = {}) ⇒ Sso

Returns a new instance of Sso.

Raises:

  • (ArgumentError)


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