lib/linodians/group.rb in linodians-0.0.3 vs lib/linodians/group.rb in linodians-0.0.4

- old
+ new

@@ -5,11 +5,11 @@ # Group of employees class Group < Delegator attr_reader :members alias_method :__getobj__, :members - def initialize - @members = Linodians.download_data + def initialize(data = nil) + @members = data || Linodians.download_data @members.freeze super(@members) end def __setobj__(_)