Class: PFM::Message::Instructions::Marker

Inherits:
Object
  • Object
show all
Defined in:
docs/01450_Systems_00004_Message.rb

Overview

Class that describes a Marker

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(id, data, width = 0) ⇒ Marker

Create a new Marker

Parameters:

  • id (Integer)

    ID of the marker

  • data (String)

    data of the marker

  • width (Integer) (defaults to: 0)

    width of the marker



299
300
# File 'docs/01450_Systems_00004_Message.rb', line 299

def initialize(id, data, width = 0)
end

Instance Attribute Details

#dataString (readonly)

Get the marker data

Returns:



291
292
293
# File 'docs/01450_Systems_00004_Message.rb', line 291

def data
  @data
end

#idInteger (readonly)

Get the marker ID

Returns:

  • (Integer)


288
289
290
# File 'docs/01450_Systems_00004_Message.rb', line 288

def id
  @id
end

#widthInteger (readonly)

Get the width of the marker

Returns:

  • (Integer)


294
295
296
# File 'docs/01450_Systems_00004_Message.rb', line 294

def width
  @width
end