Sha256: cb4fca5127d1d50cf690afc156b0b6a3056113441d0c8b246a036a0cb1f86e9e

Contents?: true

Size: 329 Bytes

Versions: 10

Compression:

Stored size: 329 Bytes

Contents

module RubyRedtail
  class Authentication
    def initialize(authentication = {})
      raise ArgumentError if authentication.class != Hash
      authentication.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/authentication.rb
ruby-redtail-0.3.7 lib/ruby-redtail/authentication.rb
ruby-redtail-0.3.6 lib/ruby-redtail/authentication.rb
ruby-redtail-0.3.5 lib/ruby-redtail/authentication.rb
ruby-redtail-0.3.4 lib/ruby-redtail/authentication.rb
ruby-redtail-0.3.3 lib/ruby-redtail/authentication.rb
ruby-redtail-0.3.2 lib/ruby-redtail/authentication.rb
ruby-redtail-0.3.1 lib/ruby-redtail/authentication.rb
ruby-redtail-0.3.0 lib/ruby-redtail/authentication.rb
ruby-redtail-0.2.0 lib/ruby-redtail/authentication.rb