Module: Appsignal::CLI::Diagnose::Data Private
- Included in:
- Appsignal::CLI::Diagnose
- Defined in:
- lib/appsignal/cli/diagnose.rb
Overview
This module is part of a private API. You should avoid using this module if possible, as it may be removed or be changed in the future.
Instance Method Summary collapse
- #current_section ⇒ Object private
- #data ⇒ Object private
- #data_section(key) ⇒ Object private
- #save(key, value) ⇒ Object private
Instance Method Details
#current_section ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
63 64 65 |
# File 'lib/appsignal/cli/diagnose.rb', line 63 def current_section @section end |
#data ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
53 54 55 |
# File 'lib/appsignal/cli/diagnose.rb', line 53 def data @data ||= Hash.new { |hash, key| hash[key] = {} } end |
#data_section(key) ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
57 58 59 60 61 |
# File 'lib/appsignal/cli/diagnose.rb', line 57 def data_section(key) @section = key yield @section = nil end |
#save(key, value) ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
67 68 69 |
# File 'lib/appsignal/cli/diagnose.rb', line 67 def save(key, value) data[current_section][key] = value end |