Method: Gemstash::Authorization#initialize
- Defined in:
- lib/gemstash/authorization.rb
#initialize(record) ⇒ Authorization
Returns a new instance of Authorization.
60 61 62 63 64 |
# File 'lib/gemstash/authorization.rb', line 60 def initialize(record) @auth_key = record.auth_key @all = record. == "all" @permissions = Set.new(record..split(",")) end |