Class: Diagnostics::Data::Elements

Inherits:
Hash
  • Object
show all
Defined in:
lib/diagnostics/data/elements.rb

Instance Method Summary collapse

Constructor Details

#initializeElements

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