Class: ProcIndex::Container
- Inherits:
-
Object
- Object
- ProcIndex::Container
- Includes:
- Enumerable
- Defined in:
- lib/proc_index/container.rb
Instance Attribute Summary collapse
-
#body ⇒ Object
Returns the value of attribute body.
-
#key ⇒ Object
Returns the value of attribute key.
Instance Method Summary collapse
- #fields ⇒ Object
-
#initialize(fields, data) ⇒ Container
constructor
A new instance of Container.
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
#body ⇒ Object
Returns the value of attribute body.
8 9 10 |
# File 'lib/proc_index/container.rb', line 8 def body @body end |
#key ⇒ Object
Returns the value of attribute key.
8 9 10 |
# File 'lib/proc_index/container.rb', line 8 def key @key end |
Instance Method Details
#fields ⇒ Object
17 18 19 |
# File 'lib/proc_index/container.rb', line 17 def fields @fields end |