Class: RegistersClient::Entry
- Inherits:
-
Object
- Object
- RegistersClient::Entry
- Defined in:
- lib/entry.rb
Instance Method Summary collapse
- #entry_number ⇒ Object
- #entry_type ⇒ Object
-
#initialize(rsf_line, entry_number, entry_type) ⇒ Entry
constructor
A new instance of Entry.
- #item_hash ⇒ Object
- #key ⇒ Object
- #timestamp ⇒ Object
- #value ⇒ Object
Constructor Details
#initialize(rsf_line, entry_number, entry_type) ⇒ Entry
Returns a new instance of Entry.
3 4 5 6 7 8 9 |
# File 'lib/entry.rb', line 3 def initialize(rsf_line, entry_number, entry_type) @rsf_line = rsf_line @entry_number = entry_number @entry_type = entry_type @parsed_entry = nil end |
Instance Method Details
#entry_number ⇒ Object
11 12 13 |
# File 'lib/entry.rb', line 11 def entry_number @entry_number end |
#entry_type ⇒ Object
27 28 29 |
# File 'lib/entry.rb', line 27 def entry_type @entry_type end |
#item_hash ⇒ Object
23 24 25 |
# File 'lib/entry.rb', line 23 def item_hash get_entry[:item_hash] end |
#key ⇒ Object
15 16 17 |
# File 'lib/entry.rb', line 15 def key get_entry[:key] end |
#timestamp ⇒ Object
19 20 21 |
# File 'lib/entry.rb', line 19 def get_entry[:timestamp] end |
#value ⇒ Object
31 32 33 |
# File 'lib/entry.rb', line 31 def value get_entry end |