Sha256: 80c5ea6fa4e0b438daef2c7ebb37fd253b5295117529eaaf550f102e152378fa

Contents?: true

Size: 396 Bytes

Versions: 3

Compression:

Stored size: 396 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
    def show(id)
      response = request :get, "/transactions/#{id}.json"
      response['transaction']
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
squall-1.0.2 lib/squall/transaction.rb
squall-1.0.1 lib/squall/transaction.rb
squall-1.0.0 lib/squall/transaction.rb