Sha256: 4e7d126f52f94573d4b698d4578edf6f89aafff38a521e3ba2436e0dfcaf038e

Contents?: true

Size: 231 Bytes

Versions: 9

Compression:

Stored size: 231 Bytes

Contents

module Wego
  class Response
    def self.parse_json(response)
      JSON.parse(response, object_class: Wego::OpenStruct)
    end
  end

  class OpenStruct < ::OpenStruct
    alias :read_attribute_for_serialization :send
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
wego-0.2.2 lib/wego/response.rb
wego-0.2.1 lib/wego/response.rb
wego-0.2.0 lib/wego/response.rb
wego-0.1.5 lib/wego/response.rb
wego-0.1.4 lib/wego/response.rb
wego-0.1.3 lib/wego/response.rb
wego-0.1.2 lib/wego/response.rb
wego-0.1.1 lib/wego/response.rb
wego-0.1.0 lib/wego/response.rb