Sha256: 950153bce06ca330794702074063d2df49da32f4cd17e30f2a17b6811b02faae
Contents?: true
Size: 460 Bytes
Versions: 4
Compression:
Stored size: 460 Bytes
Contents
module Squall # OnApp Transaction class Transaction < Base # Returns a list of all Transactions. def list response = request :get, '/transactions.json' response.collect { |t| t['transaction'] } end # Return a Hash for the given Transaction # # ==== Params # # * +id*+ - ID of transaction def show(id) response = request :get, "/transactions/#{id}.json" response['transaction'] end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
squall-1.3.0 | lib/squall/transaction.rb |
squall-1.2.1beta1 | lib/squall/transaction.rb |
squall-1.2.0beta1 | lib/squall/transaction.rb |
squall-1.1.0 | lib/squall/transaction.rb |