Class: KManager::Overview::DumpJson

Inherits:
Object
  • Object
show all
Defined in:
lib/k_manager/overview/dump_json.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(path, manager) ⇒ DumpJson

Returns a new instance of DumpJson.



9
10
11
12
# File 'lib/k_manager/overview/dump_json.rb', line 9

def initialize(path, manager)
  @path = path
  @queries = KManager::Overview::Queries.new(manager)
end

Instance Attribute Details

#pathObject (readonly)

Returns the value of attribute path.



6
7
8
# File 'lib/k_manager/overview/dump_json.rb', line 6

def path
  @path
end

#queriesObject (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