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

Inherits:
Object
  • Object
show all
Defined in:
scripts/01450 Systems/00004 Message/00001 Logic/00003 Instructions.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



207
208
209
210
211
# File 'scripts/01450 Systems/00004 Message/00001 Logic/00003 Instructions.rb', line 207

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

Instance Attribute Details

#dataString (readonly)

Get the marker data

Returns:



198
199
200
# File 'scripts/01450 Systems/00004 Message/00001 Logic/00003 Instructions.rb', line 198

def data
  @data
end

#idInteger (readonly)

Get the marker ID

Returns:



195
196
197
# File 'scripts/01450 Systems/00004 Message/00001 Logic/00003 Instructions.rb', line 195

def id
  @id
end

#widthInteger (readonly)

Get the width of the marker

Returns:



201
202
203
# File 'scripts/01450 Systems/00004 Message/00001 Logic/00003 Instructions.rb', line 201

def width
  @width
end