Sha256: d8d52ce0d616e9cb11a78c52fb35b27944e8607141219d8041f9de8da392ded4
Contents?: true
Size: 201 Bytes
Versions: 3
Compression:
Stored size: 201 Bytes
Contents
# frozen_string_literal: true module AtlasRb class Resource extend AtlasRb::FaradayHelper def self.find(id) JSON.parse(connection({}).get('/resources/' + id)&.body) end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
atlas_rb-0.0.40 | lib/atlas_rb/resource.rb |
atlas_rb-0.0.39 | lib/atlas_rb/resource.rb |
atlas_rb-0.0.38 | lib/atlas_rb/resource.rb |