Sha256: bacbb42ca4a28e7576f7dc55450c1ce9a0d8707958f00069dbf6b4bc0aeb096e
Contents?: true
Size: 608 Bytes
Versions: 1
Compression:
Stored size: 608 Bytes
Contents
module Marvel module Response def self.create(response_hash) results = response_hash.data.results.dup rescue response_hash results.extend(self) results.instance_exec do @code = response_hash.code @status = response_hash.status @etag = response_hash.etag @offset = response_hash.data.offset @limit = response_hash.data.limit @total = response_hash.data.total @count = response_hash.data.count end results end attr_reader :code, :status, :etag, :offset, :limit, :total, :count end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
marvel_api-0.2.1 | lib/marvel/response.rb |