lib/marvin/parsers/prefixes/server.rb in Sutto-marvin-0.4.0 vs lib/marvin/parsers/prefixes/server.rb in Sutto-marvin-0.8.0.0
- old
+ new
@@ -5,10 +5,10 @@
class Server
attr_accessor :name
def initialize(name = nil)
- self.name = name || ""
+ @name = name.to_s
end
def to_hash
{:server => @name.freeze}
end
\ No newline at end of file