Module: EventInventory::ParseHelper::ClassMethods
- Includes:
- FormatHelper
- Defined in:
- lib/event_inventory/parse_helper.rb
Instance Method Summary
collapse
#format_key, #format_query_value
Instance Method Details
#element(name, options = {}) ⇒ Object
14
15
16
17
18
19
20
|
# File 'lib/event_inventory/parse_helper.rb', line 14
def element(name, options={})
if options[:value] && !options[:force]
options[:value] = format_key(options[:value])
end
super(name, options)
end
|
#elements(name, options = {}) ⇒ Object
22
23
24
25
26
27
28
|
# File 'lib/event_inventory/parse_helper.rb', line 22
def elements(name, options={})
if options[:value] && !options[:force]
options[:value] = format_key(options[:value])
end
super(name, options)
end
|