Class: ISO8583::BMP
- Inherits:
-
Object
- Object
- ISO8583::BMP
- Defined in:
- lib/iso8583/message.rb
Overview
Internal class used to tie together name, bitmap number, field en/decoder and the value of the corresponding field
Instance Attribute Summary collapse
-
#bmp ⇒ Object
Returns the value of attribute bmp.
-
#field ⇒ Object
Returns the value of attribute field.
-
#name ⇒ Object
Returns the value of attribute name.
-
#value ⇒ Object
Returns the value of attribute value.
Instance Method Summary collapse
- #encode ⇒ Object
-
#initialize(bmp, name, field) ⇒ BMP
constructor
A new instance of BMP.
Constructor Details
#initialize(bmp, name, field) ⇒ BMP
Returns a new instance of BMP.
446 447 448 449 450 |
# File 'lib/iso8583/message.rb', line 446 def initialize(bmp, name, field) @bmp = bmp @name = name @field = field end |
Instance Attribute Details
#bmp ⇒ Object
Returns the value of attribute bmp.
441 442 443 |
# File 'lib/iso8583/message.rb', line 441 def bmp @bmp end |
#field ⇒ Object
Returns the value of attribute field.
443 444 445 |
# File 'lib/iso8583/message.rb', line 443 def field @field end |
#name ⇒ Object
Returns the value of attribute name.
442 443 444 |
# File 'lib/iso8583/message.rb', line 442 def name @name end |
#value ⇒ Object
Returns the value of attribute value.
444 445 446 |
# File 'lib/iso8583/message.rb', line 444 def value @value end |
Instance Method Details
#encode ⇒ Object
452 453 454 |
# File 'lib/iso8583/message.rb', line 452 def encode field.encode(value) end |