Class: Recurly::FileParser

Inherits:
Object
  • Object
show all
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

Class Method Details

.parse(body) ⇒ Resource

Parses the json body into a recurly object.

Parameters:

  • body (String)

    The data string to cast.

Returns:



9
10
11
# File 'lib/recurly/schema/file_parser.rb', line 9

def self.parse(body)
  Recurly::Resources::BinaryFile.cast(data: body)
end