Skip to content

Commit

Permalink
Merge pull request #108 from inaka/ParserPublicInit
Browse files Browse the repository at this point in the history
Added public initializer to ResponseParser
  • Loading branch information
Pablo Villar authored Apr 4, 2017
2 parents 0bb9477 + 304e221 commit 4b0ac9f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Jayme.podspec
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@

Pod::Spec.new do |s|
s.name = "Jayme"
s.version = "4.0.1"
s.version = "4.0.2"
s.summary = "An abstraction layer that eases RESTful interconnections in Swift"
s.description = <<-DESC
Jayme is a Swift library that provides you with a set of tools which reduce drastically the amount of code you have to write to perform CRUD operations to a RESTful API. It also encapsulates networking code, encouraging you to separate networking and business logic code out of your view controllers.
Expand Down
3 changes: 3 additions & 0 deletions Jayme/HTTPResponseParser.swift
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@ public typealias HTTPResponseParserResult = Result<(data: Data?, pageInfo: PageI
/// A parser that converts raw response data (as they come from `URLSession`) into other type of data that is more Jayme-architectured.
open class HTTPResponseParser {

/// Public initializer
public init () {}

/// Turns response data as it comes from `URLSession` (a.k.a. `FullHTTPResponse`) into a different format, which is more useful from Jayme's perspective (a.k.a. `HTTPResponseParserResult`).
open func parse(_ response: FullHTTPResponse) -> HTTPResponseParserResult {
if let error = response.error {
Expand Down

0 comments on commit 4b0ac9f

Please sign in to comment.