In Files

Parent

Files

CTAPI::Response

A response received from the cardterminal.

Public Instance Methods

changed?() click to toggle source

(Not documented)

# File lib/ctapi.rb, line 445
    def changed?
      @data[-2, 2] == "\x62\x00" ? true : false
    end
not_changed?() click to toggle source

(Not documented)

# File lib/ctapi.rb, line 449
    def not_changed?
      @data[-2, 2] == "\x62\x01" ? true : false
    end
successful?() click to toggle source

If this response was successful true is returned, false otherwise. A response is successful if the last two bytes are ‘90:00’.

# File lib/ctapi.rb, line 439
    def successful?
      return false if @data.size < 2
      return true if @data[-2, 2] == "\x90\x00"
      false
    end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.