Class: Factbase::ToJSON
- Inherits:
-
Object
- Object
- Factbase::ToJSON
- Defined in:
- lib/factbase/to_json.rb
Overview
Instance Method Summary collapse
-
#initialize(fb, sorter = '_id') ⇒ ToJSON
constructor
Constructor.
-
#json ⇒ String
Convert the entire factbase into JSON.
Constructor Details
#initialize(fb, sorter = '_id') ⇒ ToJSON
Constructor.
23 24 25 26 |
# File 'lib/factbase/to_json.rb', line 23 def initialize(fb, sorter = '_id') @fb = fb @sorter = sorter end |