Class: Recurly::FileParser
- Inherits:
-
Object
- Object
- Recurly::FileParser
- Defined in:
- lib/recurly/schema/file_parser.rb
Overview
This is a wrapper class to help parse http response into Recurly objects.
Class Method Summary collapse
-
.parse(body) ⇒ Resource
Parses the json body into a recurly object.
Class Method Details
.parse(body) ⇒ Resource
Parses the json body into a recurly object.
9 10 11 |
# File 'lib/recurly/schema/file_parser.rb', line 9 def self.parse(body) Recurly::Resources::BinaryFile.cast(data: body) end |