Sha256: 12f3cbe144272a4100dd5067f4dd4b336a6f062021c9f0fa93256add72e4041c
Contents?: true
Size: 803 Bytes
Versions: 2
Compression:
Stored size: 803 Bytes
Contents
# frozen_string_literal: true module TopsConnect module Communities # Method: GET # Endpoint: Community_GetList # Returns: Array<TopsConnect::Community> def communities get('/community').map do |community_data| TopsConnect::Community.new community_data end end # Method: GET # Endpoint: Community_Get # Returns: TopsConnect::Community def community TopsConnect::Community.new get("/community/#{@community_id}") end # Method: GET # Endpoint: ChargeCode_GetList # Returns: Array<Hash> def charge_codes get('/chargecode').map do |charge_code| { key: charge_code['key'], code: charge_code['code'], description: charge_code['description'] } end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
tops_connect-0.6.1 | lib/tops_connect/communities.rb |
tops_connect-0.6.0 | lib/tops_connect/communities.rb |