Sha256: da72a188d9eef2d219b477612e1e0d0d6682d1425b44c8d3a2395768663cec55
Contents?: true
Size: 417 Bytes
Versions: 1
Compression:
Stored size: 417 Bytes
Contents
module NewRelic module RestApi class ResponseCollection < Array attr_reader :response, :body, :collection def initialize(response, options, &block) @response = response @body = options.fetch(:body) @collection = @body.map(&block) super(@collection) end def inspect "#<ResponseCollection:#{object_id} #{collection}>" end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
new_relic-rest_api-0.1.0 | lib/new_relic/rest_api/response_collection.rb |