Sha256: f98b8c9647df78218efe7e6ff7daeb941ef2619eb41849ffcd1f621b83da5fe9
Contents?: true
Size: 502 Bytes
Versions: 2
Compression:
Stored size: 502 Bytes
Contents
module ArtemisApi class Stage < ArtemisApi::Model json_type 'stages' related_to_many :sub_stages related_to_many :zones def self.find(id, facility_id, client, include: 'sub_stages,zones', 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: 'sub_stages,zones') client.find_all(self.json_type, facility_id: facility_id, include: include) end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
artemis_api-0.7.5 | lib/artemis_api/stage.rb |
artemis_api-0.7.4 | lib/artemis_api/stage.rb |