Module: Roar::JSON::JSONAPI::Document
- Defined in:
- lib/roar/json/json_api/document.rb
Overview
Instance method API for JSON API Documents.
Instance Method Summary collapse
-
#to_hash(options = {}) ⇒ Hash{String=>Object}
Render the document as a Ruby Hash.
-
#to_json(options = {}) ⇒ String
Render the document as JSON.
Instance Method Details
#to_hash(options = {}) ⇒ Hash{String=>Object}
Render the document as a Ruby Hash
53 54 55 |
# File 'lib/roar/json/json_api/document.rb', line 53 def to_hash( = {}) super end |
#to_json(options = {}) ⇒ String
Render the document as JSON
29 30 31 |
# File 'lib/roar/json/json_api/document.rb', line 29 def to_json( = {}) super end |