Sha256: 3b44eb2293781e06e93d6fb90982a0e704e853287346390b69449d6daf618bfb
Contents?: true
Size: 502 Bytes
Versions: 3
Compression:
Stored size: 502 Bytes
Contents
module Alma class UserSet attr_reader :total_record_count, :list def initialize(ws_response) @ws_response = ws_response end def total_record_count @ws_response['users'].fetch('total_record_count', 0) end def list @list ||= list_results end private def response_records @ws_response['users'].fetch('user',[]) end def list_results response_records.map do |fee| Alma::AlmaRecord.new(fee) end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
alma-0.2.1 | lib/alma/user_set.rb |
alma-0.2.0 | lib/alma/user_set.rb |
alma-0.1.0 | lib/alma/user_set.rb |