In Files

Parent

Methods

Files

CTAPI::Cardterminal::Manufacturer

A little structure for manufacturer information.

Attributes

manufacturer[R]

The manufacturer of this cardterminal.

model[R]

The model name of this cardterminal.

revision[R]

The revision number of this cardterminal.

Public Class Methods

new(response) click to toggle source

Creates a Manufacturer object for this cardterminal from a manufacturer status response.

# File lib/ctapi.rb, line 360
      def initialize(response)
        @manufacturer, @model, @revision =
          response[0, 5], response[5, 3], response[10, 5]
      end

Public Instance Methods

to_s() click to toggle source

A string of the form ‘manufacturer model revision’ is returned.

# File lib/ctapi.rb, line 375
      def to_s
        [manufacturer, model, revision].join(" ")
      end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.