Class: ProcIndex::Container

Inherits:
Object
  • Object
show all
Includes:
Enumerable
Defined in:
lib/proc_index/container.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(fields, data) ⇒ Container



10
11
12
13
14
15
# File 'lib/proc_index/container.rb', line 10

def initialize(fields, data)
  @fields = fields
  @data   = data

  format_data!
end

Instance Attribute Details

#bodyObject

Returns the value of attribute body.



8
9
10
# File 'lib/proc_index/container.rb', line 8

def body
  @body
end

#keyObject

Returns the value of attribute key.



8
9
10
# File 'lib/proc_index/container.rb', line 8

def key
  @key
end

Instance Method Details

#fieldsObject



17
18
19
# File 'lib/proc_index/container.rb', line 17

def fields
  @fields
end