Class: RegistersClient::Entry

Inherits:
Object
  • Object
show all
Defined in:
lib/entry.rb

Instance Method Summary collapse

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_numberObject



11
12
13
# File 'lib/entry.rb', line 11

def entry_number
  @entry_number
end

#entry_typeObject



27
28
29
# File 'lib/entry.rb', line 27

def entry_type
  @entry_type
end

#item_hashObject



23
24
25
# File 'lib/entry.rb', line 23

def item_hash
  get_entry[:item_hash]
end

#keyObject



15
16
17
# File 'lib/entry.rb', line 15

def key
  get_entry[:key]
end

#timestampObject



19
20
21
# File 'lib/entry.rb', line 19

def timestamp
  get_entry[:timestamp]
end

#valueObject



31
32
33
# File 'lib/entry.rb', line 31

def value
  get_entry
end