Class: KManager::Overview::DumpJson
- Inherits:
-
Object
- Object
- KManager::Overview::DumpJson
- Defined in:
- lib/k_manager/overview/dump_json.rb
Instance Attribute Summary collapse
-
#path ⇒ Object
readonly
Returns the value of attribute path.
-
#queries ⇒ Object
readonly
Returns the value of attribute queries.
Instance Method Summary collapse
- #areas(file_name) ⇒ Object
- #documents(file_name) ⇒ Object
-
#initialize(path, manager) ⇒ DumpJson
constructor
A new instance of DumpJson.
- #resources(file_name) ⇒ Object
Constructor Details
Instance Attribute Details
#path ⇒ Object (readonly)
Returns the value of attribute path.
6 7 8 |
# File 'lib/k_manager/overview/dump_json.rb', line 6 def path @path end |
#queries ⇒ Object (readonly)
Returns the value of attribute queries.
7 8 9 |
# File 'lib/k_manager/overview/dump_json.rb', line 7 def queries @queries end |
Instance Method Details
#areas(file_name) ⇒ Object
14 15 16 |
# File 'lib/k_manager/overview/dump_json.rb', line 14 def areas(file_name) dump(file_name, queries.areas) end |
#documents(file_name) ⇒ Object
22 23 24 |
# File 'lib/k_manager/overview/dump_json.rb', line 22 def documents(file_name) dump(file_name, queries.documents) end |
#resources(file_name) ⇒ Object
18 19 20 |
# File 'lib/k_manager/overview/dump_json.rb', line 18 def resources(file_name) dump(file_name, queries.resources) end |