Sha256: dda7590d2bc9420cf29d4468d9a4aa68625f0424da694fc9f70bfc9517d01c23
Contents?: true
Size: 707 Bytes
Versions: 4
Compression:
Stored size: 707 Bytes
Contents
module Medlink class User < Base attribute :id, Integer attribute :first_name, String attribute :last_name, String attribute :ecn_year, Integer attribute :ecn_ranking, Integer attribute :internat_end_year, Integer attribute :birthdate, Date attribute :speciality, Medlink::Speciality attribute :city, Medlink::City attribute :profession, Medlink::Profession def self.search(params = {}) json = client.post("#{path}/search", params) users = [] json.each do |element| users << new(element) end users end private def path "users" end def self.path "users" end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
medlink-0.3.0 | lib/medlink/user.rb |
medlink-0.2.2 | lib/medlink/user.rb |
medlink-0.2.1 | lib/medlink/user.rb |
medlink-0.2.0 | lib/medlink/user.rb |