Sha256: 35e26e47977ea98efdd16447557b65ef8a52d37a661d5cf2d62be1ed6dbbe75f
Contents?: true
Size: 775 Bytes
Versions: 1
Compression:
Stored size: 775 Bytes
Contents
#!ruby require 'logger' class NOMS end class NOMS::Command end class NOMS::Command::Auth < NOMS::Command::Base end class NOMS::Command::Auth::Identity < NOMS::Command::Base include Enumerable def initialize(auth, h, attrs={}) @log = attrs[:logger] || default_logger @auth = auth @data = h end def [](key) @data[key] end def []=(key, value) @data[key] = value end def each @data.each end def keys @data.keys end def save @log.debug "Saving #{@data['id']}" end def id @data['id'] end def realm @data['realm'] end def domain @data['domain'] end def to_s "#{@data['id']}" end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
noms-command-0.5.0 | lib/noms/command/auth/identity.rb |