Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
sferik committed Oct 21, 2010
1 parent 002ff62 commit 4f2f8fd
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/faraday/parse.rb
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ def initialize(app)

private

def parse_json(response_body)
def self.parse_json(response_body)
case response_body
when ''
nil
Expand All @@ -38,11 +38,11 @@ def parse_json(response_body)
when 'false'
false
else
::MultiJson.decode(response[:body])
::MultiJson.decode(response_body)
end
end

def parse_xml
def self.parse_xml(response_body)
::MultiXml.parse(response_body)
end
end
Expand Down

0 comments on commit 4f2f8fd

Please sign in to comment.