Sha256: b981b35b20319f035474ced72adb834a095b3551f4acd27303d7bdca35f91820
Contents?: true
Size: 301 Bytes
Versions: 1
Compression:
Stored size: 301 Bytes
Contents
module TimeCamp class UserCollection < TimeCamp::ResourceCollection def initialize(response) @resources = response.map{|user| User.new(user) } end def self.parse(response) return (response.length > 1) ? UserCollection.new(response) : User.new(response[0]) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
ruby-timecamp-0.0.2 | lib/ruby-timecamp/resources/user_collection.rb |