Sha256: 7725904cfa81f281a0eae71f00a88017d26177e71e8590f716b43ddd9d8c9350
Contents?: true
Size: 371 Bytes
Versions: 2
Compression:
Stored size: 371 Bytes
Contents
# frozen_string_literal: true module Talkbird module Result class Failure < Basic attr_reader :result def initialize(result) @result = result @body = MultiJson.load(result.body.to_s, symbolize_keys: true) end def code @body[:code] end def message @body[:message] end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
talkbird-0.0.3 | lib/talkbird/result/failure.rb |
talkbird-0.0.2 | lib/talkbird/result/failure.rb |