Module: JSONAPI

Defined in:
lib/jsonapi/parser.rb,
lib/jsonapi/parser/document.rb,
lib/jsonapi/parser/resource.rb,
lib/jsonapi/parser/exceptions.rb,
lib/jsonapi/parser/relationship.rb

Defined Under Namespace

Modules: Parser

Class Method Summary collapse

Class Method Details

.parse_relationship!(document) ⇒ Object

See Also:

  • JSONAPI::Parser::Relationship.validate!


19
20
21
# File 'lib/jsonapi/parser.rb', line 19

def parse_relationship!(document)
  Parser::Relationship.parse!(document)
end

.parse_resource!(document) ⇒ Object

See Also:

  • JSONAPI::Parser::Resource.validate!


14
15
16
# File 'lib/jsonapi/parser.rb', line 14

def parse_resource!(document)
  Parser::Resource.parse!(document)
end

.parse_response!(document) ⇒ Object

See Also:

  • JSONAPI::Parser::Document.validate!


9
10
11
# File 'lib/jsonapi/parser.rb', line 9

def parse_response!(document)
  Parser::Document.parse!(document)
end