Sha256: 734bfc2e703f2fad123d4d880ea8445299236c9d35b520b6c99985b879973650

Contents?: true

Size: 448 Bytes

Versions: 6

Compression:

Stored size: 448 Bytes

Contents

module ArtemisApi
  class Zone < ArtemisApi::Model
    json_type 'zones'

    def self.find(id:, facility_id:, client:, include: nil, force: false)
      client.find_one(self.json_type, id, facility_id: facility_id, include: include, force: force)
    end

    def self.find_all(facility_id:, client:, include: nil, filters: nil)
      client.find_all(self.json_type, facility_id: facility_id, include: include, filters: filters)
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
artemis_api-0.5.1 lib/artemis_api/zone.rb
artemis_api-0.4.0 lib/artemis_api/zone.rb
artemis_api-0.3.0 lib/artemis_api/zone.rb
artemis_api-0.2.1 lib/artemis_api/zone.rb
artemis_api-0.2.0 lib/artemis_api/zone.rb
artemis_api-0.1.0 lib/artemis_api/zone.rb