lib/clinical/status.rb in dpickett-clinical-0.1.0 vs lib/clinical/status.rb in dpickett-clinical-0.1.1
- old
+ new
@@ -28,10 +28,10 @@
def open?
OPEN_STATUSES.include?(name)
end
def to_s
- sym.to_s
+ @name.to_s
end
class << self
def parse(s)
s.nil? ? nil : Status.new(s.downcase.gsub(" ", "_").to_sym)