Class: Diagnostics::Data::Elements
- Defined in:
- lib/diagnostics/data/elements.rb
Instance Method Summary collapse
- #attributes(format) ⇒ Object
-
#initialize ⇒ Elements
constructor
A new instance of Elements.
- #lists(format) ⇒ Object
- #tables(format) ⇒ Object
- #texts(format) ⇒ Object
Constructor Details
#initialize ⇒ Elements
Returns a new instance of Elements.
5 6 7 8 9 10 |
# File 'lib/diagnostics/data/elements.rb', line 5 def initialize self[:attributes] = [] self[:lists] = [] self[:texts] = [] self[:tables] = [] end |
Instance Method Details
#attributes(format) ⇒ Object
12 13 14 |
# File 'lib/diagnostics/data/elements.rb', line 12 def attributes(format) elements(:attributes, format) end |
#lists(format) ⇒ Object
16 17 18 |
# File 'lib/diagnostics/data/elements.rb', line 16 def lists(format) elements(:lists, format) end |
#tables(format) ⇒ Object
24 25 26 |
# File 'lib/diagnostics/data/elements.rb', line 24 def tables(format) elements(:tables, format) end |
#texts(format) ⇒ Object
20 21 22 |
# File 'lib/diagnostics/data/elements.rb', line 20 def texts(format) elements(:texts, format) end |