Class: CodeInventory::JSONFile

Inherits:
Object
  • Object
show all
Defined in:
lib/codeinventory/json_file.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(json_file) ⇒ JSONFile

Returns a new instance of JSONFile.



7
8
9
# File 'lib/codeinventory/json_file.rb', line 7

def initialize(json_file)
  @projects = JSON.load(json_file)
end

Instance Attribute Details

#projectsObject

Returns the value of attribute projects.



5
6
7
# File 'lib/codeinventory/json_file.rb', line 5

def projects
  @projects
end