Sha256: df78ac2aba3525039d936a54c84a2ccdf272290cc6c6efe5de64747e22825475

Contents?: true

Size: 343 Bytes

Versions: 93

Compression:

Stored size: 343 Bytes

Contents

module Recurly
  # This is a wrapper class to help parse http response into Recurly objects.
  class FileParser

    # Parses the json body into a recurly object.
    #
    # @param body [String] The data string to cast.
    # @return [Resource]
    def self.parse(body)
      Recurly::Resources::BinaryFile.cast(data: body)
    end
  end
end

Version data entries

93 entries across 93 versions & 1 rubygems

Version Path
recurly-4.36.0 lib/recurly/schema/file_parser.rb
recurly-4.35.0 lib/recurly/schema/file_parser.rb
recurly-3.27.0 lib/recurly/schema/file_parser.rb
recurly-4.34.0 lib/recurly/schema/file_parser.rb
recurly-3.26.0 lib/recurly/schema/file_parser.rb
recurly-4.33.0 lib/recurly/schema/file_parser.rb
recurly-4.32.0 lib/recurly/schema/file_parser.rb
recurly-4.31.0 lib/recurly/schema/file_parser.rb
recurly-4.30.0 lib/recurly/schema/file_parser.rb
recurly-4.29.0 lib/recurly/schema/file_parser.rb
recurly-3.25.0 lib/recurly/schema/file_parser.rb
recurly-4.28.0 lib/recurly/schema/file_parser.rb
recurly-4.27.0 lib/recurly/schema/file_parser.rb
recurly-3.24.0 lib/recurly/schema/file_parser.rb
recurly-3.23.0 lib/recurly/schema/file_parser.rb
recurly-4.26.0 lib/recurly/schema/file_parser.rb
recurly-4.25.0 lib/recurly/schema/file_parser.rb
recurly-4.24.0 lib/recurly/schema/file_parser.rb
recurly-4.23.0 lib/recurly/schema/file_parser.rb
recurly-4.22.0 lib/recurly/schema/file_parser.rb