Sha256: 68f904b1f827eb714e4dab6866605395aea3b8847f7772f015ab280053a4b1c6

Contents?: true

Size: 285 Bytes

Versions: 10

Compression:

Stored size: 285 Bytes

Contents

module RubyRedtail
  class Sso
    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
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
ruby-redtail-0.3.8 lib/ruby-redtail/sso.rb
ruby-redtail-0.3.7 lib/ruby-redtail/sso.rb
ruby-redtail-0.3.6 lib/ruby-redtail/sso.rb
ruby-redtail-0.3.5 lib/ruby-redtail/sso.rb
ruby-redtail-0.3.4 lib/ruby-redtail/sso.rb
ruby-redtail-0.3.3 lib/ruby-redtail/sso.rb
ruby-redtail-0.3.2 lib/ruby-redtail/sso.rb
ruby-redtail-0.3.1 lib/ruby-redtail/sso.rb
ruby-redtail-0.3.0 lib/ruby-redtail/sso.rb
ruby-redtail-0.2.0 lib/ruby-redtail/sso.rb