mirror of
https://github.com/jimeh/redistat.git
synced 2026-02-19 13:26:39 +00:00
made Key#scope return Scope object instead of Scope#to_s
This commit is contained in:
@@ -30,13 +30,14 @@ module Redistat
|
||||
options[:depth]
|
||||
end
|
||||
|
||||
def scope
|
||||
@scope.to_s
|
||||
end
|
||||
# def scope
|
||||
# @scope.to_s
|
||||
# end
|
||||
|
||||
def scope=(input)
|
||||
@scope = (input.instance_of?(Redistat::Scope)) ? input : Scope.new(input)
|
||||
end
|
||||
attr_reader :scope
|
||||
|
||||
def label=(input)
|
||||
@label = (input.instance_of?(Redistat::Label)) ? input : Label.create(input, @options)
|
||||
|
||||
Reference in New Issue
Block a user