Class: Keoken::Parser
- Inherits:
-
Object
- Object
- Keoken::Parser
- Defined in:
- lib/keoken/parser.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#amount ⇒ Object
Returns the value of attribute amount.
-
#data ⇒ Object
Returns the value of attribute data.
-
#name ⇒ Object
Returns the value of attribute name.
-
#transaction_type ⇒ Object
Returns the value of attribute transaction_type.
Instance Method Summary collapse
-
#initialize(script) ⇒ Parser
constructor
A new instance of Parser.
Constructor Details
#initialize(script) ⇒ Parser
Returns a new instance of Parser.
4 5 6 7 |
# File 'lib/keoken/parser.rb', line 4 def initialize(script) binary = script.htb @data = binary.bytes end |
Instance Attribute Details
#amount ⇒ Object
Returns the value of attribute amount.
3 4 5 |
# File 'lib/keoken/parser.rb', line 3 def amount @amount end |
#data ⇒ Object
Returns the value of attribute data.
3 4 5 |
# File 'lib/keoken/parser.rb', line 3 def data @data end |
#name ⇒ Object
Returns the value of attribute name.
3 4 5 |
# File 'lib/keoken/parser.rb', line 3 def name @name end |
#transaction_type ⇒ Object
Returns the value of attribute transaction_type.
3 4 5 |
# File 'lib/keoken/parser.rb', line 3 def transaction_type @transaction_type end |