Class: CodeInventory::Source::JSONFile

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(json_file) ⇒ JSONFile

Returns a new instance of JSONFile.



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

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

Instance Attribute Details

#projectsObject

Returns the value of attribute projects.



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

def projects
  @projects
end