Sha256: 86fc666c65074b0baf0abcda768121628ad8f0cc62067b468f44a76f0517ba7b
Contents?: true
Size: 356 Bytes
Versions: 1
Compression:
Stored size: 356 Bytes
Contents
module RewardExpert # API calls client class class Client attr_reader :conn def initialize @conn = RewardExpert.connection end def cards conn.get('cards').body['cards'] end def cards_as_hash result = {} cards.each do |card| result[card['id']] = card end result end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
reward_expert-0.1.0 | lib/reward_expert/client.rb |