Skip to content

Commit

Permalink
Remove status since faraday does not provide message and it does not
Browse files Browse the repository at this point in the history
seem to be in use
  • Loading branch information
Hornwall committed May 14, 2020
1 parent ca1e184 commit 64ac1a0
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions lib/postnord/response.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,12 @@ class Response
def initialize(data)
@data = data
@code = data.status
@status = data.msg
end

def code
@data.code
end

def status
@data.status
end

def data
JSON.parse(@data.body)
rescue JSON::ParserError
Expand All @@ -23,7 +18,6 @@ def data
def to_h
{
code: @code,
status: @status,
data: data,
}
end
Expand Down

0 comments on commit 64ac1a0

Please sign in to comment.