Sha256: ee84ab7df7205a1d9492893aaefcd0601b68fca7ed1cbc19667e86bb1e44c08a

Contents?: true

Size: 358 Bytes

Versions: 1

Compression:

Stored size: 358 Bytes

Contents

module LinkedIn
  class Response < Hashie::Mash
    attr_reader :_response

    def initialize(response)
      super response.body
      @_response = response
    end

    def method_missing(method, *args, &block)
      case method.to_s
      when /^_(.+)/
        _response.send $1.to_sym, *args, &block
      else
        super
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
linkedin2-0.0.17 lib/linkedin/response.rb