Sha256: 94d24e25c2aee3aae2f07ee806f586c9f6186c5aa0912b735c472b1332452b46
Contents?: true
Size: 373 Bytes
Versions: 2
Compression:
Stored size: 373 Bytes
Contents
module Breathe class Employees attr_reader :client def initialize(client) @client = client end def list(args = {}) client.response( method: :get, path: "employees", args: args ) end def get(id) client.response( method: :get, path: "employees/#{id.to_i}" ) end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
breathe-0.3.1 | lib/breathe/employees.rb |
breathe-0.3.0 | lib/breathe/employees.rb |