Class: Raddocs::Index
- Inherits:
-
Object
- Object
- Raddocs::Index
- Defined in:
- lib/raddocs/models.rb
Overview
Index page model
Instance Method Summary collapse
-
#initialize(file) ⇒ Index
constructor
A new instance of Index.
-
#resources ⇒ Array
Array of Resources.
Constructor Details
#initialize(file) ⇒ Index
Returns a new instance of Index.
4 5 6 |
# File 'lib/raddocs/models.rb', line 4 def initialize(file) @attrs = JSON.parse(File.read(file)) end |