Sha256: 42bb4d392a66af894dd4d6473b8c1fdca60aec4d0cb1eaca389f0c60b0e991eb
Contents?: true
Size: 407 Bytes
Versions: 1
Compression:
Stored size: 407 Bytes
Contents
module Doctors class Search include Id::Model include Id::Form extend Doctors::Validations field :location field :offset, default: 0 field :limit, default: 10 validates_presence_of :location def results @results ||= API.search(criteria).map(&Practice) end def criteria { organisationtype: 'GPB', offset: offset, limit: limit } end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
doctors-0.0.1 | lib/doctors/search.rb |