Sha256: b9b24f9e11ec6a3a9fd23719e76fcee7f094935c6a49f08c10dc08bcf6d01b82
Contents?: true
Size: 692 Bytes
Versions: 1
Compression:
Stored size: 692 Bytes
Contents
module Medlink class Interne include Virtus.model 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 def self.where(client, params) response = client.get('/internes', params) if response.status == 200 json = JSON.parse response.body internes = [] json.each do |json_item| internes << self.new(json_item) end internes end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
medlink-0.1.0 | lib/medlink/interne.rb |