Class: PFM::Message::Instructions::Marker
- Defined in:
- scripts/01450 Systems/00004 Message/00001 Logic/00003 Instructions.rb
Overview
Class that describes a Marker
Instance Attribute Summary collapse
-
#data ⇒ String
readonly
Get the marker data.
-
#id ⇒ Integer
readonly
Get the marker ID.
-
#width ⇒ Integer
readonly
Get the width of the marker.
Instance Method Summary collapse
-
#initialize(id, data, width = 0) ⇒ Marker
constructor
Create a new Marker.
Constructor Details
#initialize(id, data, width = 0) ⇒ Marker
Create a new 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
#data ⇒ String (readonly)
Get the marker data
198 199 200 |
# File 'scripts/01450 Systems/00004 Message/00001 Logic/00003 Instructions.rb', line 198 def data @data end |
#id ⇒ Integer (readonly)
Get the marker ID
195 196 197 |
# File 'scripts/01450 Systems/00004 Message/00001 Logic/00003 Instructions.rb', line 195 def id @id end |
#width ⇒ Integer (readonly)
Get the width of the marker
201 202 203 |
# File 'scripts/01450 Systems/00004 Message/00001 Logic/00003 Instructions.rb', line 201 def width @width end |